Clinia
API ReferenceREST API

Upsert patient

PUT
/v1/patients/{patientId}

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

Path Parameters

patientId*string

Registry key of the patient, as assigned by the caller when the first ingest was submitted.

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

Response Body

application/json

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