跳转到主要内容
POST
/
enrichment
/
upsert
规则更新
curl --request POST \
  --url 'https://api.flashcat.cloud/enrichment/upsert?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "integration_id": 123,
  "rules": [
    {
      "kind": "extraction",
      "settings": {
        "source_field": "<string>",
        "result_label": "<string>",
        "g_json": "<string>",
        "pattern": "<string>",
        "override": true
      },
      "if": [
        {
          "key": "title",
          "oper": "IN",
          "vals": [
            "<string>"
          ]
        }
      ]
    }
  ]
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
integration_id
integer
必填
rules
规则列表 · object[]
必填

规则将按照顺序依次执行

响应

200 - application/json
error
object

错误信息,仅失败时存在