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": "cc7e1fc2-6787-4f74-9eec-5e451c3419a5",
    "type": "on_call_shadows",
    "attributes": {
      "schedule_id": "2897bf80-972e-45e6-9da0-8d050c80fed8",
      "shadowable_type": "Schedule",
      "shadowable_id": "2897bf80-972e-45e6-9da0-8d050c80fed8",
      "shadow_user_id": 332,
      "starts_at": "2025-04-18T20:21:38.000-07:00",
      "ends_at": "2025-04-19T18:21:38.000-07:00",
      "created_at": "2025-04-18T18:21:38.319-07:00",
      "updated_at": "2025-04-18T18:21:39.957-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