策略详情
POST
https://api.flashcat.cloud/channel/escalate/rule/info
最后修改时间:2024-01-22 06:51:25
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/channel/escalate/rule/info?app_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"channel_id": 0,
"rule_id": "string"
}'
响应示例响应示例
{
"error": {
"code": "string",
"message": "string"
},
"data": {
"channel_id": 0,
"rule_id": "string",
"rule_name": "string",
"template_id": "string",
"description": "string",
"status": "enabled",
"priority": 0,
"created_at": "string",
"updated_at": "string",
"updated_by": 0,
"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": {
"data_source_id": 0,
"chat_ids": "string",
"reply_mode": "threads",
"reply_event_types": [
"string"
],
"disable_at": true,
"put_top_notice": true
}
}
]
}
}
],
"aggr_window": 0,
"time_filters": [
{
"start": "string",
"end": "string",
"repeat": [
0
],
"cal_id": "string",
"is_off": true
}
],
"filters": [
[
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
]
]
}
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json