- 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
View preference settings
POST
/preference/info
Request
Header Params
Content-Type
string
optional
Example:
application/json
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/preference/info'
Responses
🟢200成功
application/json
Body
error
object (DutyError)
optional
code
enum<string>
Rule description
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Inner conditions
data
object (Preference)
Response data
person_id
integer
Enable rule
trigger_notify
object (SeverityToBy)
required
shedule_shift_notify
object
Disable rule
Example
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"person_id": 0,
"trigger_notify": {
"critical": [
"email"
],
"warning": [
"email"
],
"info": [
"email"
]
},
"shedule_shift_notify": {
"personal_channels": [
"string"
]
}
}
}
Modified at 2025-01-22 10:14:38