- Open API
- Quick Start
- About Pagination
- Member Management
- Team Management
- Schedule Management
- Information Retrieval
- Preference Settings
- Channel
- Template Management
- Incident Management
- Group View
- Match conditions
- Enable rule
- Disable rule
- Delete rule
- Rule list
- See creation interface for filters explanation
- Create rule
- Rule description
- Update rule
- Channel
- Match conditions
- Match conditions
- Update rule
- Channel
- Rule ID
- Inner conditions
- Enable rule
- Rule list
- Rule details
- Rule name
- Rule description
- Match conditions
- Rule description
- See creation interface for filters explanation
- Disable rule
- Rule description
- Alert Management
- Change Management
- Insights (old)
- Custom Fields
- Service Calendar
- Label Enhancement
- Alert Processing
- Integration Routing
- License Management
- Insights
- Event API
- Webhook
Update schedule
POST
/schedule/update
Request
Body Params application/json
layers
array [object {11}]
Rule
layer_name
string
Rule name
mode
enum<integer>
Mode (normal/temporary)
Allowed values:
01
groups
array [object {2}]
Schedule group
rotation_duration
integer
Schedule cycle
>= 3600<= 2592000
fair_rotation
boolean
Fair rotation switch
handoff_time
integer
Handover time
layer_start
integer
Start time
layer_end
integer
End time
restrict_mode
enum<integer>
Restriction mode within cycle
Allowed values:
012
restrict_periods
array [object {2}]
Restricted time interval list
day_mask
object
Date mask
notify
object
Schedule rotation notifications
advance_in_time
integer
Advance notification time
fixed_time
object
Fixed time notification
by
object
Personal notifications
webhooks
array [object {2}]
Webhook notifications
schedule_id
integer
required
schedule_name
string
optional
team_id
integer
Team ID
description
string
Notes
Example
{
"layers": [
{
"layer_name": "string",
"mode": 0,
"groups": [
{
"group_name": "string",
"members": [
{
"role_id": 0,
"person_ids": [
0
]
}
]
}
],
"rotation_duration": 3600,
"fair_rotation": true,
"handoff_time": 0,
"layer_start": 0,
"layer_end": 0,
"restrict_mode": 0,
"restrict_periods": [
{
"restrict_start": 0,
"restrict_end": 0
}
],
"day_mask": {
"repeat": [
0
]
}
}
],
"notify": {
"advance_in_time": 0,
"fixed_time": {
"cycle": "day",
"start": "string"
},
"by": {
"follow_preference": true,
"personal_channels": [
"email"
]
},
"webhooks": [
{
"type": "feishu",
"settings": {
"token": "string",
"alias": "string",
"integration_id": 0,
"chat_ids": [
"string"
],
"sign_secret": "string"
}
}
]
},
"schedule_id": 0,
"schedule_name": "string",
"team_id": 0,
"description": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/schedule/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"layers": [
{
"layer_name": "string",
"mode": 0,
"groups": [
{
"group_name": "string",
"members": [
{
"role_id": 0,
"person_ids": [
0
]
}
]
}
],
"rotation_duration": 3600,
"fair_rotation": true,
"handoff_time": 0,
"layer_start": 0,
"layer_end": 0,
"restrict_mode": 0,
"restrict_periods": [
{
"restrict_start": 0,
"restrict_end": 0
}
],
"day_mask": {
"repeat": [
0
]
}
}
],
"notify": {
"advance_in_time": 0,
"fixed_time": {
"cycle": "day",
"start": "string"
},
"by": {
"follow_preference": true,
"personal_channels": [
"email"
]
},
"webhooks": [
{
"type": "feishu",
"settings": {
"token": "string",
"alias": "string",
"integration_id": 0,
"chat_ids": [
"string"
],
"sign_secret": "string"
}
}
]
},
"schedule_id": 0,
"schedule_name": "string",
"team_id": 0,
"description": "string"
}'
Responses
🟢200成功
application/json
Body
error
object
required
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
Example
{
"error": {
"code": "0",
"message": ""
}
}