策略创建
POST
https://api.flashcat.cloud/channel/inhibit/rule/create
最后修改时间:2024-10-09 09:03:25
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/channel/inhibit/rule/create?app_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"channel_id": 0,
"rule_name": "string",
"description": "string",
"priority": 0,
"source_filters": [
[
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
]
],
"target_filters": [
[
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
]
],
"equals": [
"string"
],
"is_directly_discard": true
}'
响应示例响应示例
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"rule_id": "string",
"rule_name": "string"
}
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json