Skip to main content

List the staffing gap for every path planned within one committed shift plan of a site (canonical route)

GET 

/sites/:siteCode/shifts/:shiftId/staffing-gap

The canonical route of the all-paths staffing-gap list (ADR 0035; supersedes GET /buildings/{buildingId}/shifts/{shiftId}/staffing-gap, which stays as a deprecated alias). Same handler core and response shape. The path siteCode is both the plan lookup key and the associate scope: every path's activeHeads counts only associates with an active shift at that site (ADR 0034). Reuses the exact same per-path computation as GET /paths/{pathId}/staffing-gap 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.

Request​

Responses​

Staffing gap for every path planned in this site's committed shift, one entry per path, scoped to the site.