Modify Preference Settings
POST
/preference/updateRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
trigger_notify
object (SeverityToBy)
required
critical
array [oneOf]
Critical alert notification methods
warning
array [oneOf]
Warning alert notification methods
info
array [oneOf]
Info alert notification methods
schedule_shift_notify
object
Shift change notification method
personal_channels
array[string]
Notification channels
Allowed values:
emailvoicesmsfeishu_app:{data_source_id}dingtalk_app:{data_source_id}wecom_app:{data_source_id}
Example
{
"trigger_notify": {
"critical": [
"email"
],
"warning": [
"email"
],
"info": [
"email"
]
},
"schedule_shift_notify": {
"personal_channels": [
"email"
]
}
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
Non-empty indicates request error
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
Example
Not configured
Last modified: 2 个月前