Skip to main content
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": "67d96e2e-3ac1-4bbb-8cf5-1feef50b64a0",
    "type": "on_call_shadows",
    "attributes": {
      "schedule_id": "c8279fe3-38f8-489c-848b-50dfd2d92bf4",
      "shadowable_type": "User",
      "shadowable_id": "902",
      "shadow_user_id": 901,
      "starts_at": "2026-02-19T18:12:19.680-08:00",
      "ends_at": "2026-02-20T18:12:19.680-08:00",
      "created_at": "2026-02-17T18:12:19.726-08:00",
      "updated_at": "2026-02-17T18:12:19.726-08: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

shadow shift is created

data
object
required