PUT
/
v1
/
on_call_shadows
/
{id}
curl --request PUT \
  --url https://api.rootly.com/v1/on_call_shadows/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "on_call_shadows",
    "attributes": {
      "schedule_id": "<string>",
      "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": "5bb1c54d-fe75-4ed2-81de-28954bbd014a",
    "type": "on_call_shadows",
    "attributes": {
      "schedule_id": "65679212-5afa-4959-9765-8c9bef5160e4",
      "shadowable_type": "Schedule",
      "shadowable_id": "65679212-5afa-4959-9765-8c9bef5160e4",
      "shadow_user_id": 360,
      "starts_at": "2025-03-29T01:03:36.000-07:00",
      "ends_at": "2025-03-29T23:03:36.000-07:00",
      "created_at": "2025-03-28T23:03:36.827-07:00",
      "updated_at": "2025-03-28T23:03:38.299-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/vnd.api+json
data
object
required

Response

200
application/vnd.api+json
on call shadows configuration is is updated
data
object
required