For the complete documentation index, see llms.txt. This page is also available as Markdown.

Assign users to shifts

The endpoint assigns one or more users to one or more shifts. If multiple user_ids are provided, multiple users are assigned. If multiple shift_ids are provided, each user is assigned to each shift.

If notify_user is true, the API additionally triggers:

  • shift approval notifications to users

Endpoint

POST /api/shifts/bulk-assign/

Payload sample

{
  "user_ids": [
    "06d9d2da-e99d-4c9a-9f95-c9acd55e9ee1",
    "de89a718-51f6-46e2-800f-56709879f179",
    "5a8046f9-e698-49b7-b69f-a732ff13502b"
  ],
  "shift_ids": [
    "a167ac3f-952e-417d-85e6-6d4f74306950"
  ],
  "notify_user": true
}

Response sample

Last updated