跳转到主要内容
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
review
/
create
创建审核规则
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/review/create \
  --header 'Content-Type: application/json' \
  --header 'x-ti-app-id: <api-key>' \
  --header 'x-ti-secret-code: <api-key>' \
  --data '{
  "ruleName": "审核规则123",
  "rulePrompt": "审核规则提示内容",
  "classificationIdNoList": [
    123
  ],
  "fileBatchNo": "abcd",
  "workspaceIdNo": 123,
  "fields": [
    {
      "classificationIdNo": 1234,
      "classificationName": "身份证",
      "basicFields": [
        {
          "fieldId": 1234,
          "fieldName": "卡号"
        }
      ],
      "tableFields": [
        {
          "tableId": -1,
          "tableName": "Table1",
          "fields": [
            {
              "fieldId": 1234,
              "fieldName": "卡号"
            }
          ]
        }
      ]
    }
  ]
}'
{
  "code": 200,
  "data": {
    "ruleIdNo": 1234
  },
  "msg": "成功",
  "traceId": "1234abcd"
}

Authorizations

x-ti-app-id
string
header
required
x-ti-secret-code
string
header
required

Headers

x-ti-app-id
string
required

x-ti-app-id

Example:

"1234abcd"

x-ti-secret-code
string
required

x-ti-secret-code

Example:

"1234abcd"

Body

application/json

创建规则ReqVO

ruleName
string
required

审核规则名称

Maximum length: 255
Example:

"审核规则123"

rulePrompt
string
required

审核规则提示

Maximum length: 1000
Example:

"审核规则提示内容"

classificationIdNoList
string[]
required

分类ID列表

Required array length: 1 - 2147483647 elements

分类ID

fileBatchNo
string
required

文件批次号

Example:

"abcd"

workspaceIdNo
string
required

工作空间ID

Example:

123

fields
object[]

关联的字段信息

Response

200 - */*

OK

code
integer

状态码

Example:

200

data
object

创建规则返回结果VO

msg
string

状态信息

Example:

"成功"

traceId
string

链路id

Example:

"1234abcd"