Clinia
API ReferenceREST API

Upsert patient

PUT
/v1/patients/{patientId}

Creates the patient entry if it does not yet exist, or returns the existing record unchanged. Fully idempotent — safe to call before or after the first ingest.

Authorization

Bearer write
AuthorizationBearer <token>

Each operation lists the OAuth scope (read or write) it requires.

In: header

Scope: write

Path Parameters

patientId*string

ID of the patient

Match^[A-Za-z0-9._-]{1,128}$

Response Body

application/json

curl -X PUT "https://example.com/v1/patients/string"
{  "id": "string",  "createdAt": "string",  "updatedAt": "string"}