Overview
Reference
- AlertEvents
- AlertGroups
- AlertUrgencies
- AlertSources
- Alerts
- Audits
- Authorizations
- CatalogEntities
- CatalogEntityProperties
- CatalogFields
- Catalogs
- Causes
- [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
- IpRanges
- LiveCallRouters
- OnCallRoles
- OnCallShadows
- OverrideShifts
- PlaybookTasks
- Playbooks
- RetrospectiveTemplates
- Pulses
- RetrospectiveConfigurations
- RetrospectiveProcessGroupSteps
- RetrospectiveProcessGroups
- RetrospectiveProcesses
- RetrospectiveSteps
- Roles
- ScheduleRotationActiveDays
- ScheduleRotationUsers
- ScheduleRotations
- Schedules
- Shifts
- Secrets
- Services
- Severities
- StatusPageTemplates
- StatusPages
- SubStatuses
- Teams
- UserNotificationRules
- Users
- WebhooksDeliveries
- WebhooksEndpoints
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/%7Bschedule_id%7D/schedule_rotations \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/vnd.api+json'
{
"data": {
"id": "bb14b917-62f4-478d-a193-9284241e7089",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "813d7c42-8933-4c6f-9786-24ca99773a11",
"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/%7Bschedule_id%7D/schedule_rotations \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/vnd.api+json'
{
"data": {
"id": "bb14b917-62f4-478d-a193-9284241e7089",
"type": "schedule_rotations",
"attributes": {
"schedule_id": "813d7c42-8933-4c6f-9786-24ca99773a11",
"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"
}
]
}
}
}