跳转到主要内容
POST
/
route
/
upsert
路由更新
curl --request POST \
  --url 'https://api.flashcat.cloud/route/upsert?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "integration_id": 123,
  "version": 123,
  "default": {
    "channel_ids": [
      123
    ]
  },
  "cases": [
    {
      "if": [
        {
          "key": "title",
          "oper": "IN",
          "vals": [
            "<string>"
          ]
        }
      ],
      "channel_ids": [
        123
      ],
      "fallthrough": true,
      "routing_mode": "standard",
      "name_mapping_label": "<string>"
    }
  ],
  "sections": [
    {
      "name": "<string>",
      "position": 123
    }
  ]
}
'
{
  "error": {}
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
integration_id
integer
必填
version
integer
必填
default
默认路由 · object

与条件路由至少传一个

cases
条件路由 · object[]

与默认路由至少传一个

sections
object[]

响应

200 - application/json
error
object