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": "63a8ddcf-dd9f-4df6-a523-d3a00b554e56",
    "type": "shifts",
    "attributes": {
      "schedule_id": "eab82a08-b3e6-4134-ad7d-0ff126251eab",
      "rotation_id": null,
      "user_id": 447,
      "starts_at": "2025-12-24T11:27:29.000-08:00",
      "ends_at": "2025-12-25T09:27:29.000-08:00",
      "is_override": true
    },
    "relationships": {
      "shift_override": {
        "data": {
          "id": "4a22d7d7-8824-4717-88e5-ef22c1d431ba",
          "type": "shift_overrides"
        }
      },
      "user": {
        "data": {
          "id": "447",
          "type": "users"
        }
      },
      "assignee": {
        "data": {
          "id": "447",
          "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