Add blood test panels to an appointment
curl --request POST \
--url https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a/panels \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"panel_ids": [
"d4e5f6a7-b8c9-4d1e-a2f3-b4c5d6e7f8a9",
"e5f6a7b8-c9d0-4e2f-b3a4-c5d6e7f8a9b0"
]
}'
{
"success": true
}
409 Conflict.TEST_SESSIONS_SCHEDULE scope. Requests made with a key that lacks this scope return 403 Forbidden.200 OK confirming the panels have been added.
true when the panels have been successfully added to the appointment.| Status | Description |
|---|---|
400 | Validation error — e.g., panel_ids is empty or contains an invalid UUID. |
403 | Forbidden — missing TEST_SESSIONS_SCHEDULE scope. |
404 | Appointment or one or more panels not found. |
409 | Conflict — panels cannot be added after the blood draw has been confirmed. |
500 | Internal server error. |
curl --request POST \
--url https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a/panels \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"panel_ids": [
"d4e5f6a7-b8c9-4d1e-a2f3-b4c5d6e7f8a9",
"e5f6a7b8-c9d0-4e2f-b3a4-c5d6e7f8a9b0"
]
}'
{
"success": true
}
curl --request POST \
--url https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a/panels \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"panel_ids": [
"d4e5f6a7-b8c9-4d1e-a2f3-b4c5d6e7f8a9",
"e5f6a7b8-c9d0-4e2f-b3a4-c5d6e7f8a9b0"
]
}'
{
"success": true
}