Creates a new on call shadow configuration from provided data
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": "b55af7fc-53c9-4354-9b12-389fa7c6683c",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "7cefb0bc-600f-498b-a5d2-a3a258a4e294",
"shadowable_type": "User",
"shadowable_id": "443",
"shadow_user_id": 442,
"starts_at": "2026-01-05T21:28:53.231-08:00",
"ends_at": "2026-01-06T21:28:53.231-08:00",
"created_at": "2026-01-03T21:28:53.274-08:00",
"updated_at": "2026-01-03T21:28:53.274-08:00"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
shadow shift is created
Show child attributes
Was this page helpful?
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": "b55af7fc-53c9-4354-9b12-389fa7c6683c",
"type": "on_call_shadows",
"attributes": {
"schedule_id": "7cefb0bc-600f-498b-a5d2-a3a258a4e294",
"shadowable_type": "User",
"shadowable_id": "443",
"shadow_user_id": 442,
"starts_at": "2026-01-05T21:28:53.231-08:00",
"ends_at": "2026-01-06T21:28:53.231-08:00",
"created_at": "2026-01-03T21:28:53.274-08:00",
"updated_at": "2026-01-03T21:28:53.274-08:00"
}
}
}