跳转到主要内容
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
tables
/
add
新增文件类别表格
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/category/tables/add \
  --header 'Content-Type: application/json' \
  --header 'x-ti-app-id: <api-key>' \
  --header 'x-ti-secret-code: <api-key>' \
  --data '
{
  "workspace_id": "1234567890",
  "category_id": "1234567890",
  "name": "表格1",
  "prompt": "请抽取每行的品名、数量和金额",
  "collect_from_multi_table": true
}
'
{
  "code": 200,
  "msg": "<string>",
  "result": {
    "table_id": "1234567890"
  }
}

授权

x-ti-app-id
string
header
必填
x-ti-secret-code
string
header
必填

请求体

application/json
workspace_id
string
必填

空间ID

示例:

"1234567890"

category_id
string
必填

文件类别ID

示例:

"1234567890"

name
string
必填

表格名称

Maximum string length: 50
示例:

"表格1"

prompt
string

表格语义抽取提示词

Maximum string length: 200
示例:

"请抽取每行的品名、数量和金额"

collect_from_multi_table
boolean

多表合并

示例:

true

响应

200 - application/json

成功新增文件类别表格

code
integer
必填

状态码

示例:

200

msg
string
必填

状态描述

result
object