跳转到主要内容
POST
/
channel
/
escalate
/
rule
/
info
策略详情
curl --request POST \
  --url 'https://api.flashcat.cloud/channel/escalate/rule/info?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel_id": 123,
  "rule_id": "<string>"
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {
    "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
必填
rule_id
string
必填

响应

200 - application/json
error
object

错误信息,仅失败时存在

data
object