Update a specific schedule rotation by id
curl --request PUT \
--url https://api.rootly.com/v1/schedule_rotations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "schedule_rotations",
"attributes": {
"name": "<string>",
"position": 123,
"schedule_rotationable_type": "ScheduleDailyRotation",
"active_all_week": true,
"active_days": [
"S"
],
"active_time_type": "<string>",
"active_time_attributes": [
{
"start_time": "<string>",
"end_time": "<string>"
}
],
"time_zone": "Etc/UTC",
"schedule_rotationable_attributes": {
"handoff_time": "<string>"
},
"start_time": "<string>",
"end_time": "<string>"
}
}
}'
{
"data": {
"id": "e8c601be-7464-4ef3-98c7-5311f1f4e0e1",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "ee38dc31-21d0-453f-bbe1-fcf95e3e13eb",
"name": "Updated Schedule Rotation Name",
"position": 1,
"schedule_rotationable_type": "ScheduleWeeklyRotation",
"active_all_week": false,
"active_days": [
"M",
"T"
],
"active_time_type": "same_time",
"time_zone": "American Samoa",
"start_time": null,
"end_time": null,
"schedule_rotationable_attributes": {
"handoff_time": "22:30",
"handoff_day": "T"
},
"active_time_attributes": [
{
"start_time": "07:30",
"end_time": "20:30"
}
]
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
schedule_rotation updated
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://api.rootly.com/v1/schedule_rotations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "schedule_rotations",
"attributes": {
"name": "<string>",
"position": 123,
"schedule_rotationable_type": "ScheduleDailyRotation",
"active_all_week": true,
"active_days": [
"S"
],
"active_time_type": "<string>",
"active_time_attributes": [
{
"start_time": "<string>",
"end_time": "<string>"
}
],
"time_zone": "Etc/UTC",
"schedule_rotationable_attributes": {
"handoff_time": "<string>"
},
"start_time": "<string>",
"end_time": "<string>"
}
}
}'
{
"data": {
"id": "e8c601be-7464-4ef3-98c7-5311f1f4e0e1",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "ee38dc31-21d0-453f-bbe1-fcf95e3e13eb",
"name": "Updated Schedule Rotation Name",
"position": 1,
"schedule_rotationable_type": "ScheduleWeeklyRotation",
"active_all_week": false,
"active_days": [
"M",
"T"
],
"active_time_type": "same_time",
"time_zone": "American Samoa",
"start_time": null,
"end_time": null,
"schedule_rotationable_attributes": {
"handoff_time": "22:30",
"handoff_day": "T"
},
"active_time_attributes": [
{
"start_time": "07:30",
"end_time": "20:30"
}
]
}
}
}