Skip to main content
POST
Update File Category

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"

name
string

File category name

Maximum string length: 50
Example:

"Invoice"

category_prompt
string

Prompt for classification

Maximum string length: 150
Example:

"VAT invoice, including fields such as invoice code, invoice number, etc."

enabled
enum<integer>

Enabled status

  • 0: Disabled
  • 1: Enabled
  • 2: Draft
Available options:
0,
1,
2
extract_model
enum<string>

Extraction model, cascades to all fields and tables when set

  • Auto: Automatically matches the extraction model
  • Acgpt: Fast speed with stable extraction results
  • Acgpt-VL: VLM, suitable for simple extraction (≤10 pages)
  • DF-M1: Suitable for complex document understanding
Available options:
Auto,
Acgpt,
Acgpt-VL,
DF-M1
Example:

"Acgpt"

with_detail
boolean

Whether to return full details. When true, the response returns category self info (without child-level fields/tables). When not set or false, only code/msg is returned.

Response

200 - application/json

Successfully updated file category

code
integer
required

Status code

Example:

200

msg
string
required

Status description

result
object

Category self info when with_detail=true, otherwise null