Docs

Check In Shift

POST /Reservations/{reservationId}/schedule-blocks/{planBlockId}/check-in

POST/Reservations/{reservationId}/schedule-blocks/{planBlockId}/check-in

Checks in the shift (run of touching plan blocks) that the plan block belongs to and seeds its actual block from arrivedAt (default the plan start). reservationId comes from Reservations_GetReservations, planBlockId from the need's schedule blocks. Returns the seeded blocks as an array of id and reservationId, empty when the shift was already checked in. On a person with overlapping roles on this event (a double-staffed group) it checks in every role's overlapping shifts and seeds their union onto the paid role, so each seeded block names the reservationId it sits on. On an unnamed labor or serialized hold, arrivedQuantity records how many arrived and seeds that many heads; goods check in through Reservations_AddShiftAttendance instead.

Path Parameters

FieldTypeRequiredDescription
reservationIduuidRequired
planBlockIduuidRequired

Request Body

FieldTypeRequiredDescription
arrivedAtdate-timeOptional
arrivedQuantitynumberOptional

Response

Type: SeededBlockResponse[]

SeededBlockResponse

FieldTypeDescription
iduuid
reservationIduuid