Replace weekly shifts (split shifts, breaks, location per shift). Future bookings outside the new hours return requires_staff_action unless accept_conflicts is true

put/api/v1/team/{id}/hours

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/team/{id}/hours
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Path parameters

idstring required

Request body

cycle_weeks1 | 2

2 for a pattern that alternates weekly (Week A and Week B); default 1

anchor_datestring date

With cycle_weeks 2: a date in the first Week A (stored as its Monday)

accept_conflictsboolean
expected_versioninteger

Example request

{
  "shifts": [
    {
      "start": "09:00",
      "end": "17:00"
    }
  ]
}

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.