POST
/
v1
/
schedules
/
{schedule_id}
/
override_shifts
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": "e0b16de8-96ca-4055-8457-2ca212793dea",
    "type": "shifts",
    "attributes": {
      "schedule_id": "2ff5f830-2efc-4372-8eb9-2c4bbf892c39",
      "rotation_id": null,
      "starts_at": "2025-06-19T06:16:40.000-07:00",
      "ends_at": "2025-06-20T04:16:40.000-07:00",
      "is_override": true
    },
    "relationships": {
      "shift_override": {
        "data": {
          "id": "a2958021-03c6-4105-bd21-1d5ddd573481",
          "type": "shift_overrides"
        }
      },
      "user": {
        "data": {
          "id": "346",
          "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

Response

201
application/vnd.api+json

override_shift created

The response is of type object.