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": "e332a560-1c14-46ec-a106-9e0fc04e8cb3",
    "type": "shifts",
    "attributes": {
      "schedule_id": "69891b2d-6772-4d96-aaf6-b0974658b5ca",
      "rotation_id": null,
      "starts_at": "2025-03-29T01:03:42.000-07:00",
      "ends_at": "2025-03-29T23:03:42.000-07:00",
      "is_override": true
    },
    "relationships": {
      "shift_override": {
        "data": {
          "id": "7a3a6a0e-9388-4055-8078-c7ebdee98f2c",
          "type": "shift_overrides"
        }
      },
      "user": {
        "data": {
          "id": "365",
          "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

201
application/vnd.api+json
override_shift created
data
object
required