curl --location --request POST 'https://api.flashcat.cloud/channel/create?app_key=<api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"channel_name": "string",
"description": "string",
"team_id": 0,
"escalate_rule": {
"aggr_window": 0,
"template_id": "string",
"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
}
}
]
}
},
"plugin_ids": [
0
],
"auto_resolve_timeout": 0,
"auto_resolve_mode": "trigger",
"is_private": true,
"group": {
"method": "i",
"cases": [
{
"if": [
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
],
"equals": [
"title"
]
}
],
"equals": [
[
"title"
]
],
"all_equals_required": true,
"time_window": 0,
"storm_threshold": 0,
"i_keys": [
"title"
],
"i_score_threshold": 0.9
},
"flapping": {
"is_disabled": true,
"max_changes": "i",
"in_mins": 0,
"mute_mins": 0
}
}'
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"channel_id": "string",
"channel_name": "string"
}
}