Generate a weekly rotation
Lays the duty pool out over the coming weeks for ONE role, one person per week, wrapping around the list. Idempotent within its window: calling it twice with the same arguments produces the same set. Existing generated shifts inside the window are replaced, a generated shift that started before the window is truncated at the boundary so the current responder is not yanked off duty mid-shift, and shifts marked manual plus every handover are left untouched. Weeks are cut at the schedule's handoff moment in the schedule's own timezone, so a DST transition does not move them.
Request
- Base URL: https://wardenpoint.com (the document declares no server; this is the origin it was published from)
- URL: https://wardenpoint.com/api/v1/schedules/{schedule}/rotation
- Auth: API key in header X-API-Key
Path parameters
Schedule UUID.
Request body
Response
The shifts that were created, in chronological order. One per week, plus a partial first one when start_now was set.
Changes
No recorded changes to this operation across all 1 revision of this API.