Docs

Update Actual Block

PUT /Reservations/{reservationId}/schedule-blocks/{blockId}

PUT/Reservations/{reservationId}/schedule-blocks/{blockId}

Replaces one block of a reservation's actual schedule, for day-of corrections such as arriving late or going home early. A null activityId, areaId, collaboratorId or notes clears it. The blockId comes from Reservations_GetReservationActuals; for a shift with no record it may be a plan block id from the need, which checks that shift in, seeds it and edits that block's copy. workedHeads sets a quantity hold's heads for this shift (1 to the held quantity); omit it to keep the value, send null to reset to every held head. Refused (400) when this shift is approved: reopen it with Reservations_SetScheduleBlockActualsApproval first. Also refused on a named reservation that comes from an order. On a double-staffed role a plan block id edits the one piece seeded from that block, which may sit on the paid role; 400 naming the paid role when there is none or two. Works the same on an organization-level reservation (org token, resource inventory edit).

Path Parameters

FieldTypeRequiredDescription
reservationIduuidRequired
blockIduuidRequired

Request Body

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