Docs
Add Reservation
POST /Reservations
POST
/ReservationsReserves against an organization need with an org token (resource inventory edit) and returns the new reservation id. Send procurementResourceId (the need must have a plan and not be a composite) and exactly one of resourceId (an organization resource of the need's type, not archived) or quantity; status defaults to Planned and shiftsFrom (flat UTC) starts its shifts there. coverings is empty and outsideWindow false. An event token gets 400: reserve against an event need through Reservations_AddResourceReservation (POST organizations/{orgId}/procurement-resources/{procurementResourceId}/reservations).
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| procurementResourceId | uuid | Optional | |
| resourceId | uuid | Optional | |
| status | string | Optional | |
| notes | string | Optional | |
| quantity | number | Optional | |
| shiftsFrom | date-time | Optional |
Response
| Field | Type | Description |
|---|---|---|
| reservationId | uuid | |
| coverings | AddReservationResponseCovering[]| null | |
| outsideWindow | boolean |
AddReservationResponseCovering
| Field | Type | Description |
|---|---|---|
| orderId | uuid | |
| orderLineItemId | uuid | |
| procurementResourceId | uuid |