POST
/
v1
/
schedules
/
{schedule_id}
/
override_shifts
creates an override shift
curl --request POST \
  --url https://api.rootly.com/v1/schedules/{schedule_id}/override_shifts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "shifts",
    "attributes": {
      "starts_at": "2023-11-07T05:31:56Z",
      "ends_at": "2023-11-07T05:31:56Z",
      "user_id": 123
    }
  }
}'
{
  "data": {
    "id": "654f508c-b420-47dc-a6c6-fdbeadbfc4e7",
    "type": "shifts",
    "attributes": {
      "schedule_id": "349b4579-b0a3-4663-9eaa-b1bd27942d3e",
      "rotation_id": null,
      "starts_at": "2025-09-18T22:57:53.000-07:00",
      "ends_at": "2025-09-19T20:57:53.000-07:00",
      "is_override": true
    },
    "relationships": {
      "shift_override": {
        "data": {
          "id": "eb9ba2eb-1f8c-4fa3-b70f-ef6185c0f31a",
          "type": "shift_overrides"
        }
      },
      "user": {
        "data": {
          "id": "363",
          "type": "users"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

schedule_id
string
required

Body

application/vnd.api+json
data
object
required

Response

override_shift created

data
object
required