Appointments
Attach Shipments to Appointment
Link one or more shipments to an appointment
POST
Attach one or more shipments to this appointment. Idempotent — shipments already linked are
silently skipped. Mirror of Attach Appointments to
Shipment.
The mutation rule (per shipment) is: the link can be created when EITHER
- the appointment is past blood-draw (
blood_drawn), or - the shipment was created less than 24 hours ago.
409 Conflict.
Request
Path parameters
Appointment UUID.
Body parameters
Array of shipment reference IDs to attach. Must contain at least one item.
Response
On success, the API returns200 OK with the full shipment list for the appointment, ordered
newest-first by creation. Each entry has the same shape as Get
Shipment.
Error responses
| Status | Description |
|---|---|
400 | Validation error — e.g., empty shipment_ids or malformed reference. |
403 | Forbidden — missing scope, appointment outside access context, or shipment outside access context. |
404 | Appointment not found, or one or more shipments not found. |
409 | Mutation rule failed — appointment not past blood-draw and at least one shipment is older than 24 hours. Response lists the IDs. |
500 | Internal server error. |