跳转到主要内容
POST
/
channel
/
escalate
/
rule
/
list
策略列表
curl --request POST \
  --url 'https://api.flashcat.cloud/channel/escalate/rule/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel_id": 123
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {
    "items": [
      {
        "channel_id": 123,
        "rule_id": "<string>",
        "rule_name": "<string>",
        "template_id": "<string>",
        "description": "<string>",
        "status": "enabled",
        "priority": 123,
        "created_at": "<string>",
        "updated_at": "<string>",
        "updated_by": 123,
        "layers": [
          {
            "max_times": 123,
            "notify_step": 123,
            "escalate_window": 123,
            "target": {
              "team_ids": [
                123
              ],
              "person_ids": [
                123
              ],
              "schedule_to_role_ids": {
                "{schedule_id}": [
                  123
                ]
              },
              "by": {
                "critical": [
                  "email"
                ],
                "warning": [
                  "email"
                ],
                "info": [
                  "email"
                ],
                "follow_preference": true
              },
              "webhooks": [
                {
                  "type": "feishu_app",
                  "settings": {
                    "data_source_id": 123,
                    "chat_ids": "<string>",
                    "reply_mode": "threads",
                    "reply_event_types": [
                      "<string>"
                    ],
                    "disable_at": true,
                    "put_top_notice": true,
                    "severities": [
                      "Info"
                    ]
                  }
                }
              ]
            },
            "force_escalate": true
          }
        ],
        "aggr_window": 123,
        "time_filters": [
          {
            "start": "<string>",
            "end": "<string>",
            "repeat": [
              0
            ],
            "cal_id": "<string>",
            "is_off": true
          }
        ],
        "filters": [
          [
            {
              "key": "title",
              "oper": "IN",
              "vals": [
                "<string>"
              ]
            }
          ]
        ]
      }
    ]
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
channel_id
integer
必填

响应

200 - application/json
error
object
data
object