Alerting & Response/On-Call
POSTOnCallSince 1.0SynchronousAuth Required
CreateOnCallSchedule
Create a new on-call rotation schedule with members and shift configuration
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredName of the schedule to create
Example: Platform On-Call
descriptionStringRequiredDescription of the schedule purpose
Example: 24x7 platform on-call rotation
timezoneStringRequiredIANA timezone name for scheduling
Example: Asia/Shanghai
rotationTypeStringRequiredRotation type: daily, weekly, or custom
Example: weekly
shiftDurationStringRequiredDuration of each shift as a Go duration string
Example: 168h
Responses
Endpoint
POST/api/v1/oncall/schedules
/api/v1/oncall/schedules
Request Example
curl -X POST '{host}/api/v1/oncall/schedules' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"Platform On-Call","description":"24x7 platform on-call rotation","timezone":"Asia/Shanghai","rotationType":"weekly","shiftDuration":"168h","members":"(nested array)","startDate":"2026-01-15T08:00:00Z"}'
Response Example
200{
"uuid": "sched-00112233",
"name": "Platform On-Call",
"description": "24x7 platform on-call rotation",
"timezone": "Asia/Shanghai",
"rotationType": "weekly",
"shiftDuration": "168h",
"members": [
{}
],
"startDate": "example"
}Change History
This API has no change history records yet.
