Skip to main content

Start an associate's shift

POST 

/associates/:id/shift-starts

Creates a new AssociateShift roster entry for this shift, with an initial set of certifications, raising AssociateShiftStarted. The associate id is client-supplied and this endpoint is naturally idempotent by that id: calling it twice for the same associate upserts the roster entry rather than erroring (each call still re-raises AssociateShiftStarted and returns 201). The optional siteCode records the canonical site the associate works at (ADR 0034) so the staffing gap can be scoped to a site.

Request​

Responses​

Shift started. Location points at the associate resource (this service has no GET route for an individual associate yet; the URI identifies the resource per RFC 7231 §7.1.2 regardless).

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.

    Location

    URI of the started associate's shift resource.