空间创建
POST
https://api.flashcat.cloud/channel/create
最后修改时间:2024-11-19 03:36:36
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/channel/create?app_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": {}
}
]
}
},
"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": {
"is_disabled": true,
"max_changes": "i",
"in_mins": 0,
"mute_mins": 0
}
}'
响应示例响应示例
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"channel_id": "string",
"channel_name": "string"
}
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json