Overview
AlertEvents
AlertGroups
AlertRoutingRules
AlertUrgencies
AlertSources
Alerts
Audits
Authorizations
CatalogEntities
CatalogEntityProperties
CatalogFields
Catalogs
[DEPRECATED] CustomFieldOptions
[DEPRECATED] CustomFields
CustomForms
DashboardPanels
Dashboards
Environments
EscalationPolicies
EscalationLevelsPolicies
EscalationLevelsPath
EscalationLevels
EscalationPaths
FormFieldOptions
FormFieldPlacementConditions
FormFieldPlacements
FormFieldPositions
FormFields
FormSetConditions
FormSets
Functionalities
WorkflowTasks
[DEPRECATED] WorkflowCustomFieldSelections
WorkflowFormFieldConditions
WorkflowGroups
WorkflowRuns
Workflows
Heartbeats
IncidentActionItems
[DEPRECATED] IncidentCustomFieldSelections
IncidentEventFunctionalities
IncidentEventServices
IncidentEvents
IncidentFeedbacks
IncidentFormFieldSelections
IncidentPermissionSetBooleans
IncidentPermissionSetResources
IncidentPermissionSets
IncidentRetrospectives
IncidentRetrospectiveSteps
IncidentRoleTasks
IncidentRoles
IncidentStatusPageEvents
IncidentSubStatuses
IncidentTypes
Incidents
- GETList incidents
- POSTCreates an incident
- GETRetrieves an incident
- PUTUpdate an incident
- DELDelete an incident
- PUTMitigate an incident
- PUTResolve an incident
- PUTCancel an incident
- PUTTriage an incident
- PUTRestart an incident
- PUTMark an incident as a duplicate
- POSTAdd subscribers to incident
- DELRemove subscribers from incident
- POSTAssign user to incident
- DELRemove assigned user from incident
IpRanges
LiveCallRouters
OnCallRoles
OnCallShadows
OverrideShifts
PlaybookTasks
Playbooks
RetrospectiveTemplates
RetrospectiveConfigurations
RetrospectiveProcessGroupSteps
RetrospectiveProcessGroups
RetrospectiveProcesses
RetrospectiveSteps
ScheduleRotationActiveDays
ScheduleRotationUsers
ScheduleRotations
Schedules
Services
Severities
StatusPageTemplates
StatusPages
SubStatuses
Teams
UserNotificationRules
WebhooksDeliveries
ScheduleRotations
Creates a schedule rotation
ScheduleRotations
Creates a schedule rotation
Creates a new schedule rotation from provided data
POST
/
v1
/
schedules
/
{schedule_id}
/
schedule_rotations
curl --request POST \
--url https://api.rootly.com/v1/schedules/{schedule_id}/schedule_rotations \
--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>"
}
}
}
}'
{
"data": {
"id": "9fbeb50f-9878-4ffd-be27-833a56e80f30",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "292d095e-015a-4b42-add1-a20224739742",
"name": "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",
"schedule_rotationable_attributes": {
"handoff_time": "21:30",
"handoff_day": "T"
},
"active_time_attributes": [
{
"start_time": "07:30",
"end_time": "16:30"
},
{
"start_time": "17:00",
"end_time": "21:00"
}
]
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/vnd.api+json
Available options:
schedule_rotations
The name of the schedule rotation
Schedule rotation type
Available options:
ScheduleDailyRotation
, ScheduleWeeklyRotation
, ScheduleBiweeklyRotation
, ScheduleMonthlyRotation
, ScheduleCustomRotation
Hand off time for daily rotation
Position of the schedule rotation
Schedule rotation active all week?
Schedule rotation active days
Available options:
S
, M
, T
, W
, R
, F
, U
A valid IANA time zone name.
Response
201
application/vnd.api+json
schedule_rotation created with custom active times
Unique ID of the schedule rotation
Available options:
schedule_rotations
The ID of parent schedule
The name of the schedule rotation
Schedule rotation type
Available options:
ScheduleDailyRotation
, ScheduleWeeklyRotation
, ScheduleBiweeklyRotation
, ScheduleMonthlyRotation
, ScheduleCustomRotation
Hand off time for daily rotation
Position of the schedule rotation
Schedule rotation active all week?
Schedule rotation active days
Available options:
S
, M
, T
, W
, R
, F
, U
A valid IANA time zone name.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/schedules/{schedule_id}/schedule_rotations \
--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>"
}
}
}
}'
{
"data": {
"id": "9fbeb50f-9878-4ffd-be27-833a56e80f30",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "292d095e-015a-4b42-add1-a20224739742",
"name": "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",
"schedule_rotationable_attributes": {
"handoff_time": "21:30",
"handoff_day": "T"
},
"active_time_attributes": [
{
"start_time": "07:30",
"end_time": "16:30"
},
{
"start_time": "17:00",
"end_time": "21:00"
}
]
}
}
}