Docs

Add Resource Reservation

POST /organizations/{orgId}/procurement-resources/{procurementResourceId}/reservations

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

FieldTypeRequiredDescription
orgIduuidRequired
procurementResourceIduuidRequired

Request Body

FieldTypeRequiredDescription
resourceIduuidOptional
quantitynumberOptional
substitutebooleanOptional
rateCardIduuidOptional
orderIduuidOptional
newOrderAddOrganizationResourceReservationRequestNewOrderInfoOptional
spansAddOrganizationResourceReservationRequestSpan[]Optional
shiftsFromdate-timeOptional

AddOrganizationResourceReservationRequestNewOrderInfo

FieldTypeDescription
namestring| null
sourcestring| null
orderTypeIduuid| null
valuesAddOrganizationResourceReservationRequestNewOrderInfoAttributeValueInput[]| null
intakeAnswersAddOrganizationResourceReservationRequestNewOrderInfoIntakeAnswerInput[]| null
roleOccupantsAddOrganizationResourceReservationRequestNewOrderInfoRoleOccupantsInput[]| null

AddOrganizationResourceReservationRequestSpan

FieldTypeDescription
startDateTimedate-time
endDateTimedate-time

AddOrganizationResourceReservationRequestNewOrderInfoAttributeValueInput

FieldTypeDescription
attributeIduuid
valueJsonElement| null
expiresOnJsonElement| null
itemExpiriesJsonElement| null

AddOrganizationResourceReservationRequestNewOrderInfoIntakeAnswerInput

FieldTypeDescription
questionIduuid
valueJsonElement| null

AddOrganizationResourceReservationRequestNewOrderInfoRoleOccupantsInput

FieldTypeDescription
roleDefinitionIduuid
crewIdsuuid[]| null
collaboratorRecordIdsuuid[]| null
resourceIdsuuid[]| null
procurementResourceIdsuuid[]| null

Response

FieldTypeDescription
reservationIdsuuid[]| null
coveringsAddOrganizationResourceReservationResponseCovering[]| null
outsideWindowboolean

AddOrganizationResourceReservationResponseCovering

FieldTypeDescription
orderIduuid
orderLineItemIduuid
procurementResourceIduuid