POST
/
v1
/
schedules
/
{schedule_id}
/
on_call_shadows
curl --request POST \
  --url https://api.rootly.com/v1/schedules/{schedule_id}/on_call_shadows \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "on_call_shadows",
    "attributes": {
      "shadowable_type": "User",
      "shadowable_id": "<string>",
      "shadow_user_id": 123,
      "starts_at": "2023-11-07T05:31:56Z",
      "ends_at": "2023-11-07T05:31:56Z"
    }
  }
}'
{
  "data": {
    "id": "8d2c7402-5021-40b3-8da8-817251af2ebf",
    "type": "on_call_shadows",
    "attributes": {
      "schedule_id": "65679212-5afa-4959-9765-8c9bef5160e4",
      "shadowable_type": "User",
      "shadowable_id": "361",
      "shadow_user_id": 360,
      "starts_at": "2025-03-30T23:03:36.981-07:00",
      "ends_at": "2025-03-31T23:03:36.982-07:00",
      "created_at": "2025-03-28T23:03:37.168-07:00",
      "updated_at": "2025-03-28T23:03:37.168-07:00"
    }
  }
}

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
shadow shift is created
data
object
required