Batch create patients
Creates up to 500 patients in one request.
POST
api:manage-patients
Partial success is supported — check errors alongside items.
Parameters
Each item follows the same shape as create_patient (validated server-side).
Returns
PatientBatchResult
Number of patients processed in this request.
Successful creations with index and new id.
Input index in the batch.
New Olira patient id.
Optional provenance hint from API.
Per-row failures (index, code, message).
Raises
| Exception | When |
|---|---|
AuthError | HTTP 401 or 403 — invalid API key or insufficient OAuth scope for this endpoint. |
ValidationError | HTTP 400, 404, or 422 — malformed JSON, unknown patient, or validation failure (message includes response excerpt). |
ServerError | HTTP 409 (e.g. conflicting external identifier) or repeated 5xx after retries; includes status_code when applicable. |
RateLimitError | HTTP 429 — rate limited; check retry_after (seconds). |
NetworkError | Connection timeout, DNS failure, or read error after retries. |
Previous
logEnqueues a single log for background delivery via the SDK worker (singleton after olira.init()).
Next

