Skip to main content
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
fields
/
update
Update File Category Field
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/category/fields/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",
  "field_id": "1234567890",
  "name": "Invoice Code",
  "description": "Invoice code description",
  "prompt": "<string>",
  "use_prompt": true,
  "alias": [
    "<string>"
  ],
  "identity": "<string>",
  "multi_value": true,
  "duplicate_value_distinct": true,
  "transform_settings": {
    "type": "datetime",
    "datetime_settings": {
      "format": "yyyy-MM-dd HH:mm:ss"
    },
    "enumerate_settings": {
      "items": [
        "<string>"
      ]
    },
    "regex_settings": {
      "match": "^\\d{4}-\\d{2}-\\d{2}$",
      "replace": "$1-$2-$3"
    },
    "mismatch_action": {
      "mode": "default",
      "default_value": "<string>"
    }
  },
  "table_id": "1234567890",
  "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"

field_id
string
required

Field ID

Example:

"1234567890"

name
string

Field name

Example:

"Invoice Code"

description
string

Field description

Example:

"Invoice code description"

prompt
string

Semantic extraction prompt

use_prompt
boolean

Whether to use semantic prompt

alias
string[]

Field aliases

identity
string

Export field name

multi_value
boolean

Whether to enable multi-value extraction

duplicate_value_distinct
boolean

Whether to deduplicate values, only effective when multi_value is true

transform_settings
object

Transform configuration

table_id
string

Table ID

  • Not required for regular fields
  • Required for table fields, need to provide the table ID it belongs to
Example:

"1234567890"

extract_model
enum<string>

Field-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 field

code
integer
required

Status code

Example:

200

msg
string
required

Status description