Skip to main content
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
tables
/
update
Update File Category Table
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/category/tables/update \
  --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",
  "table_id": "1234567890",
  "collect_from_multi_table": true,
  "name": "Table 1",
  "prompt": "Extract name, quantity and amount for each row",
  "extract_model": "Model 1"
}
'
{
  "code": 200,
  "msg": "<string>"
}

Authorizations

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

Body

application/json
workspace_id
string
required

Workspace ID

Example:

"1234567890"

category_id
string
required

File category ID

Example:

"1234567890"

table_id
string
required

Table ID

Example:

"1234567890"

collect_from_multi_table
boolean
required

Merge multiple tables

Example:

true

name
string

Table name

Maximum string length: 50
Example:

"Table 1"

prompt
string

Table semantic extraction prompt

Maximum string length: 200
Example:

"Extract name, quantity and amount for each row"

extract_model
enum<string>

Table-level extraction model

  • Model 1: Fast speed with stable extraction results
  • Model 2: Suitable for complex document understanding
  • Model 3: VLM, suitable for simple extraction
Available options:
Model 1,
Model 2,
Model 3
Example:

"Model 1"

Response

200 - application/json

Successfully updated file category table

code
integer
required

Status code

Example:

200

msg
string
required

Status description