Docs

Add Actual Block

POST /Reservations/{reservationId}/schedule-blocks

POST/Reservations/{reservationId}/schedule-blocks

Adds a block to a reservation's actual (on-site) schedule and returns its id with the reservation that took it. This is the real schedule, edited separately from the plan, and the rules are re-run so state records follow. typeId comes from ResourceTypes_GetScheduleBlockTypes. A block that lands in a shift with no record checks that shift in and stands in for its seed; it also checks in and seeds the uncovered rest of any other unrecorded shift it overlaps. When the person holds overlapping roles on this event (a double-staffed group), the block's start picks the role that takes it (the shift's recorded holder, else the paid role, else the solo shift's own role), so reservationId in the response may differ from the route's; the permission check runs on that role. Send later edits to the returned reservationId. On an unnamed hold from an order it changes no status and copies nothing. The new block is open, even beside approved ones. workedHeads (optional) is how many of a quantity hold's heads worked this shift, 1 to the held quantity; 400 on a named reservation. Refused on a named reservation that comes from an order, and on an order hold its order has released. Adding an open shift to a Completed reservation returns it to CheckedIn. Works the same on an organization-level reservation (org token, resource inventory edit).

Path Parameters

FieldTypeRequiredDescription
reservationIduuidRequired

Request Body

FieldTypeRequiredDescription
typeIduuidOptional
namestringOptional
startDateTimedate-timeOptional
endDateTimedate-timeOptional
activityIduuidOptional
areaIduuidOptional
collaboratorIduuidOptional
notesstringOptional
workedHeadsnumberOptional

Response

FieldTypeDescription
iduuid
reservationIduuid