POST/organizations/{orgId}/procurement-resources/{procurementResourceId}/reservations
Reserves an organization resource against a resource need, or holds a quantity of it, and puts the need
on an order. Send exactly one of resourceId (an organization resource id from the Organization API's
Resources_GetResources) or quantity, and exactly one of orderId (from Organizations_GetOrders) or
newOrder to create it in the same call. newOrder takes a name, an optional Internal or External source, and
optionally orderTypeId (an active order type from OrderTypes_GetOrderTypes) with values, intakeAnswers and
roleOccupants as Orders_CreateOrder takes them; the order is created as Orders_CreateOrder creates one and
commits with the reservation. newOrder needs Order.Edit on the need's event, held there or lent from the
organization. spans sets the reserved date ranges, and leaving them out uses
the need's schedule blocks, which is refused if the need has none. A composite need is reserved through
its components. A resource of a different type than the need is refused with 400 unless substitute is
true; a substitute is costed at the resource's own rate card and charged at the need's. rateCardId books at that
card instead of the person's rate (Reservations_GetRatePreview shows it): one of the event's cards or one of the
type's cards, of the booking's card type (the resource's own type for a substitute, else the need's type), and it
needs Procurement.Edit on the need's event, held there or lent from the organization. The
procurementResourceId comes from Organizations_GetResourceNeeds. Returns the new reservation ids and
coverings: each organization order line whose cost is shared across shows that a new reservation falls
under with no amount entered for its need yet, so the client can ask for one. A quantity hold never has
coverings, and they are empty when the organization's order lines could not be read. outsideWindow is true
when the resource is a temporary unit from an organization order (a rented unit or vendor-supplied head)
reserved outside its order's window; the reservation is still made and the client warns. Requires
organization basic access. shiftsFrom (flat UTC) makes a mid-show add whose shifts start there.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
| procurementResourceId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| resourceId | uuid | Optional | |
| quantity | number | Optional | |
| substitute | boolean | Optional | |
| rateCardId | uuid | Optional | |
| orderId | uuid | Optional | |
| newOrder | AddOrganizationResourceReservationRequestNewOrderInfo | Optional | |
| spans | AddOrganizationResourceReservationRequestSpan[] | Optional | |
| shiftsFrom | date-time | Optional | |
AddOrganizationResourceReservationRequestNewOrderInfo
| Field | Type | Description |
|---|
| name | string| null | |
| source | string| null | |
| orderTypeId | uuid| null | |
| values | AddOrganizationResourceReservationRequestNewOrderInfoAttributeValueInput[]| null | |
| intakeAnswers | AddOrganizationResourceReservationRequestNewOrderInfoIntakeAnswerInput[]| null | |
| roleOccupants | AddOrganizationResourceReservationRequestNewOrderInfoRoleOccupantsInput[]| null | |
AddOrganizationResourceReservationRequestSpan
| Field | Type | Description |
|---|
| startDateTime | date-time | |
| endDateTime | date-time | |
| Field | Type | Description |
|---|
| attributeId | uuid | |
| value | JsonElement| null | |
| expiresOn | JsonElement| null | |
| itemExpiries | JsonElement| null | |
| Field | Type | Description |
|---|
| questionId | uuid | |
| value | JsonElement| null | |
| Field | Type | Description |
|---|
| roleDefinitionId | uuid | |
| crewIds | uuid[]| null | |
| collaboratorRecordIds | uuid[]| null | |
| resourceIds | uuid[]| null | |
| procurementResourceIds | uuid[]| null | |
Response
| Field | Type | Description |
|---|
| reservationIds | uuid[]| null | |
| coverings | AddOrganizationResourceReservationResponseCovering[]| null | |
| outsideWindow | boolean | |
AddOrganizationResourceReservationResponseCovering
| Field | Type | Description |
|---|
| orderId | uuid | |
| orderLineItemId | uuid | |
| procurementResourceId | uuid | |