Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/vnd.api+json
Response
schedule_rotation updated
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>",
"schedule_rotation_members": [
{
"member_type": "User",
"member_id": "<string>",
"position": 123
}
]
}
}
}'{
"data": {
"id": "3b6abe50-2fa5-4309-a7e3-73bb33cda3b1",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "0ff1ac7c-bef9-462e-8f06-b2eec70eff97",
"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.
Show child attributes
schedule_rotation updated
Show child attributes
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>",
"schedule_rotation_members": [
{
"member_type": "User",
"member_id": "<string>",
"position": 123
}
]
}
}
}'{
"data": {
"id": "3b6abe50-2fa5-4309-a7e3-73bb33cda3b1",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "0ff1ac7c-bef9-462e-8f06-b2eec70eff97",
"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"
}
]
}
}
}