{
"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": {}
}
]
}
},
"plugin_ids": [
0
],
"auto_resolve_timeout": 0,
"is_private": true,
"group": {
"method": "i",
"cases": [
{
"if": [
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
],
"equals": [
"string"
]
}
],
"equals": [
[
"title"
]
],
"all_equals_required": true,
"time_window": 0,
"storm_threshold": 0
},
"flapping": {
"max_changes": "i",
"in_mins": 0,
"mute_mins": 0
}
}
curl --location --request POST 'http://prod-cn.your-api-server.com/channel/create' \
--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": {}
}
]
}
},
"plugin_ids": [
0
],
"auto_resolve_timeout": 0,
"is_private": true,
"group": {
"method": "i",
"cases": [
{
"if": [
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
],
"equals": [
"string"
]
}
],
"equals": [
[
"title"
]
],
"all_equals_required": true,
"time_window": 0,
"storm_threshold": 0
},
"flapping": {
"max_changes": "i",
"in_mins": 0,
"mute_mins": 0
}
}'
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"channel_id": "string",
"channel_name": "string"
}
}