新增通知媒介
POST
https://api.flashcat.cloud/api/n9e/notify-channel-configs
最后修改时间:2025-02-26 06:40:37
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/api/n9e/notify-channel-configs' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"name": "FeiShu Notification",
"ident": "feishu_channel",
"description": "A channel for sending notifications via FeiShu",
"param_config": {
"user_contact_key": "Phone",
"custom": {}
},
"request_type": "http",
"request_config": {
"http_request_config": {
"url": "https://open.feishu.cn/open-apis/bot/v2/hook/your-webhook-url",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"proxy": "",
"timeout": 10,
"concurrency": 5,
"retry_times": 3,
"retry_interval": 5,
"tls": {
"skip_verify": false
},
"request": {
"parameters": {
"feishu_robot_token": "your_feishu_token"
},
"body": "This is a FeiShu notification."
}
},
"smtp_request_config": {},
"script_request_config": {}
}
}
]'
响应示例响应示例
{
"dat": 1,
"err": ""
}
请求参数
Body 参数application/json