Update Rule
POST
/channel/escalate/rule/updateRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
channel_id
integer
Channel
rule_id
string
Rule ID
Required when updating
rule_name
string
Rule name
template_id
string
Template ID
Default is system preset template
description
string
Rule description
layers
array[object (EscalateLayer) {5}]
Notification level
max_times
integer
Maximum notification count
Default 2
notify_step
integer
Notification interval in minutes
Default 10
escalate_window
integer
Minutes before escalating to next window
Default 30
force_escalate
boolean
Whether to force escalation
By default incident won't escalate after acknowledgment, set to true to escalate even after acknowledgment
target
object (EscalateTarget)
Assignment targets
aggr_window
integer
Aggregation window in seconds, range [0,3600]
time_filters
array[object (TimeFilter) {5}]
Time filter conditions
start
string
Start time, less than end
Precision to minute, like 10:00
end
string
End time
Precision to minute, like 23:59
repeat
array[integer]
Week mode, weekday list
Mutually exclusive with calendar mode parameters, only one can exist
Allowed values:
0123456
cal_id
string
Calendar mode, calendar ID
Mutually exclusive with week mode parameters, only one can exist
is_off
boolean
Calendar mode, whether it's a rest day
true for rest day
filters
array [array]
Matching conditions
object (Filter)
optional
Inner conditions
Example
{
"channel_id": 0,
"rule_id": "string",
"rule_name": "string",
"template_id": "string",
"description": "string",
"layers": [
{
"max_times": 0,
"notify_step": 0,
"escalate_window": 0,
"force_escalate": true,
"target": {
"team_ids": [
0
],
"person_ids": [
0
],
"schedule_to_role_ids": {
"{schedule_id}": [
0
]
},
"by": {
"follow_preference": true,
"critical": [
"email"
],
"warning": [
"email"
],
"info": [
"email"
]
},
"webhooks": [
{
"type": "feishu_app",
"settings": {}
}
]
}
}
],
"aggr_window": 0,
"time_filters": [
{
"start": "string",
"end": "string",
"repeat": [
0
],
"cal_id": "string",
"is_off": true
}
],
"filters": [
[
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
]
]
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
Example
Not configured
Last modified: 2 个月前