Update Actual Block
PUT /Reservations/{reservationId}/schedule-blocks/{blockId}
/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
| Field | Type | Required | Description |
|---|---|---|---|
| reservationId | uuid | Required | |
| blockId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| typeId | uuid | Optional | |
| name | string | Optional | |
| startDateTime | date-time | Optional | |
| endDateTime | date-time | Optional | |
| activityId | uuid | Optional | |
| areaId | uuid | Optional | |
| collaboratorId | uuid | Optional | |
| notes | string | Optional | |
| workedHeads | number | Optional |