Ana içeriğe atla
POST
Complete a form on the patient's behalf

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Yol Parametreleri

customerId
integer
gerekli

The customer identifier

customerFormId
integer
gerekli

The customer form identifier

Gövde

application/json

Staff answering a pending form for the patient. The answers are validated against the template's questions exactly like the patient's own form link.

answers
object
gerekli

Answers keyed by question id, e.g. {"12": "Ayşe", "13": ["41", "42"], "14": true}. Select and radio take one option id, checkbox a list of option ids, date a Y-m-d string and boolean true/false. Answers to questions hidden by their visibility rules are ignored.

Yanıt

success
string
gerekli
data
CustomerFormResource · object
gerekli