Skip to main content

DEPRECATED -- use GET /sites/{siteCode}/shifts/{shiftId}/staffing-gap. List the staffing gap for every path planned within one committed shift plan (fleet-wide, all-paths view)

GET 

/buildings/:buildingId/shifts/:shiftId/staffing-gap

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

DEPRECATED alias of GET /sites/{siteCode}/shifts/{shiftId}/staffing-gap (ADR 0035): buildingId is the legacy name of the plan key. Every response carries the header Deprecation: true. It keeps working, unchanged, until a later breaking ADR removes it; a call that gives only the buildingId path segment is NOT scoped by site. ADR-0011's deferred fast-follow: a fleet-wide "all paths, one building/shift" list endpoint, for contexts that need every path's staffing gap for a building+shift in one call rather than one request per path. Reuses the exact same per-path computation as GET /paths/{pathId}/staffing-gap — the two can never disagree for a given path — and raises PathUnderstaffed for every understaffed path in the plan. This surfaces the gaps only — it never decides or performs a rebalance; that stays a human call recorded via POST /associates/{id}/assignments. The optional siteCode query parameter scopes every path's activeHeads to one canonical site (ADR 0034); without it the list is fleet-wide, as before.

Request​

Responses​

Staffing gap for every path planned in this building's committed shift, one entry per path.

Response Headers
    Deprecation

    true -- this route is deprecated in favour of /sites/{siteCode}/shifts/{shiftId}/staffing-gap (ADR 0035). Present on every response of this route, errors included.