跳转到主要内容
POST
/
incident
/
assign
分派故障
curl --request POST \
  --url 'https://api.flashcat.cloud/incident/assign?app_key=' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "assigned_to": {
    "type": "assign",
    "person_ids": [
      123
    ],
    "escalate_rule_id": "<string>",
    "layer_idx": 123,
    "notify": {
      "follow_preference": true,
      "personal_channels": [
        "<string>"
      ],
      "template_id": "<string>"
    },
    "layer_person_reset": {
      "0": {
        "emails": [
          "<string>"
        ],
        "team_ids": [
          123
        ],
        "person_ids": [
          123
        ],
        "schedule_to_role_ids": {
          "{schedule_id}": [
            123
          ]
        }
      }
    },
    "layer_webhook_reset": {
      "0": {
        "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"
          ]
        }
      }
    },
    "emails": [
      "<string>"
    ]
  },
  "incident_ids": [
    "<string>"
  ]
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string
必填

请求体

application/json
assigned_to
object
必填

分派配置

incident_ids
string[]

故障IDs

响应

200 - application/json
error
object

仅出现错误时返回