POST
/
v1
/
schedules
/
{schedule_id}
/
on_call_shadows
creates an shadow configuration
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": "0bca9464-d423-4165-bd55-eec801bc8de9",
    "type": "on_call_shadows",
    "attributes": {
      "schedule_id": "07b51e68-c5f6-4701-b970-74f9128ffa68",
      "shadowable_type": "User",
      "shadowable_id": "343",
      "shadow_user_id": 342,
      "starts_at": "2025-08-23T23:46:23.516-07:00",
      "ends_at": "2025-08-24T23:46:23.516-07:00",
      "created_at": "2025-08-21T23:46:23.595-07:00",
      "updated_at": "2025-08-21T23:46:23.595-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

Response

201
application/vnd.api+json

shadow shift is created

The response is of type object.