Skip to main content

End an associate's shift

POST 

/associates/:id/shift-ends

Closes the associate's shift, raising AssociateShiftEnded. Any currently active LaborAssignment is closed first (its hours logged against the shift). Idempotent: ending an already-ended shift is a no-op — no error, no event, still 204.

Request​

Responses​

Shift ended (or was already ended). No response body.

Response Headers
    Idempotency-Replayed

    "true" when this answer is the stored replay of an earlier request with the same Idempotency-Key and fingerprint; absent on the first execution.