Skip to main content
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": "12f5611c-9f8d-5b4b-ad7f-6a31d1f5d43f",
    "type": "shifts",
    "attributes": {
      "schedule_id": "25d77eea-6108-416d-a2d5-ffab88e496f5",
      "rotation_id": null,
      "user_id": 444,
      "starts_at": "2025-12-08T08:24:30.000-08:00",
      "ends_at": "2025-12-09T06:24:30.000-08:00",
      "is_override": true
    },
    "relationships": {
      "shift_override": {
        "data": {
          "id": "60ff7d8b-9e37-4047-b4e6-5963a8fb3d00",
          "type": "shift_overrides"
        }
      },
      "user": {
        "data": {
          "id": "444",
          "type": "users"
        }
      },
      "assignee": {
        "data": {
          "id": "444",
          "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

returns assignee relationship when schedule nesting enabled

data
object
required