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": "81f10a02-8bc7-47ba-b2c3-d9df8a222cab",
    "type": "shifts",
    "attributes": {
      "schedule_id": "76d80e14-f0c7-4ae5-9b60-ed4e6a87c7e1",
      "rotation_id": null,
      "starts_at": "2025-04-18T11:51:13.000-07:00",
      "ends_at": "2025-04-19T09:51:13.000-07:00",
      "is_override": true
    },
    "relationships": {
      "shift_override": {
        "data": {
          "id": "3406d0a7-8582-4778-a8b9-82a52ba37689",
          "type": "shift_overrides"
        }
      },
      "user": {
        "data": {
          "id": "335",
          "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