Appointments
Add Custom Biomarkers
Add individual biomarkers to an appointment
PATCH
Add one or more individual biomarkers to an appointment under a chosen custom container panel.
When the chosen panel routes exclusively to a single lab —
Aniva Custom ZotzKlimas (ZK) or
Aniva Custom Labclinic (LC) — the server validates that the post-change biomarker set is
orderable at that lab as a coherent combination. Partial sets that would force the lab to
also bill biomarkers you did not request are rejected with 400 and a multi-candidate
explanation listing the missing biomarkers per orderable option (see the example 400
responses below).
This call is idempotent: biomarkers already on the appointment are kept.
Request
Path parameters
Unique identifier (UUID) of the appointment.
Body parameters
UUID of the
is_custom=true panel to write the snapshot under. Pick Aniva Custom ZotzKlimas or
Aniva Custom Labclinic depending on which lab should handle the biomarkers. Must be a custom
panel reachable via your API key.Array of biomarker IDs to attach. Must contain at least one item. Use List
Biomarkers to discover IDs.
Response
On success, the API returns200 OK confirming the biomarkers have been attached.
true when the biomarkers have been successfully added to the appointment.Error responses
| Status | Description |
|---|---|
400 | Validation error — biomarker_ids empty, panel_id missing, or the lab’s order-requirements validator (ZK or LC) rejected the post-change set. |
403 | Forbidden — missing scope, appointment outside access context, or the requested custom panel is not reachable. |
404 | Appointment or one or more biomarkers not found. |
409 | Conflict — biomarkers cannot be modified after the blood draw has been confirmed. |
500 | Internal server error. |