跳转到主要内容
POST
/
channel
/
subscribe
/
rule
/
update
策略更新
curl --request POST \
  --url 'https://api.flashcat.cloud/channel/subscribe/rule/update?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel_id": 123,
  "rule_id": "<string>",
  "rule_name": "<string>",
  "description": "<string>",
  "filters": [
    [
      {
        "key": "title",
        "oper": "IN",
        "vals": [
          "<string>"
        ]
      }
    ]
  ]
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {
    "rule_id": "<string>",
    "rule_name": "<string>"
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
channel_id
integer
必填
rule_id
string
必填

更新时必传

rule_name
string
必填
description
string
必填
filters
object[][]
必填

响应

200 - application/json
error
object

错误信息,仅失败时存在

data
object