Add File Category Tables
curl --request POST \
--url https://docflow.textin.com/api/app-api/sip/platform/v2/category/tables/batch_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",
"tables": [
{
"name": "Detail Table",
"prompt": "<string>",
"collect_from_multi_table": true,
"fields": [
{
"name": "Invoice Code",
"description": "Invoice code description",
"prompt": "<string>",
"use_prompt": true,
"alias": [
"Invoice No.",
"Bill Number"
],
"identity": "invoice_number",
"multi_value": true,
"duplicate_value_distinct": true,
"transform_settings": {
"datetime_settings": {
"format": "yyyy-MM-dd"
},
"enumerate_settings": {
"items": [
"VAT Special Invoice",
"VAT General Invoice",
"Electronic Invoice"
]
},
"regex_settings": {
"match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"replace": "$1/$2/$3"
},
"mismatch_action": {
"default_value": "N/A"
}
}
}
]
}
],
"with_detail": true
}
'{
"code": 200,
"msg": "<string>",
"result": [
{
"table_id": "<string>",
"name": "<string>",
"description": "<string>",
"prompt": "<string>",
"collect_from_multi_table": true,
"extract_model": "<string>",
"fields": [
{
"name": "Invoice Code",
"description": "Invoice code description",
"prompt": "<string>",
"use_prompt": true,
"alias": [
"Invoice No.",
"Bill Number"
],
"identity": "invoice_number",
"multi_value": true,
"duplicate_value_distinct": true,
"transform_settings": {
"datetime_settings": {
"format": "yyyy-MM-dd"
},
"enumerate_settings": {
"items": [
"VAT Special Invoice",
"VAT General Invoice",
"Electronic Invoice"
]
},
"regex_settings": {
"match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"replace": "$1/$2/$3"
},
"mismatch_action": {
"default_value": "N/A"
}
},
"id": "1234567890",
"extract_model": "Model 1"
}
]
}
]
}File Category
Add File Category Tables
Add multiple tables under the specified file category (supports nested fields). All-or-nothing semantics.
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
tables
/
batch_add
Add File Category Tables
curl --request POST \
--url https://docflow.textin.com/api/app-api/sip/platform/v2/category/tables/batch_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",
"tables": [
{
"name": "Detail Table",
"prompt": "<string>",
"collect_from_multi_table": true,
"fields": [
{
"name": "Invoice Code",
"description": "Invoice code description",
"prompt": "<string>",
"use_prompt": true,
"alias": [
"Invoice No.",
"Bill Number"
],
"identity": "invoice_number",
"multi_value": true,
"duplicate_value_distinct": true,
"transform_settings": {
"datetime_settings": {
"format": "yyyy-MM-dd"
},
"enumerate_settings": {
"items": [
"VAT Special Invoice",
"VAT General Invoice",
"Electronic Invoice"
]
},
"regex_settings": {
"match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"replace": "$1/$2/$3"
},
"mismatch_action": {
"default_value": "N/A"
}
}
}
]
}
],
"with_detail": true
}
'{
"code": 200,
"msg": "<string>",
"result": [
{
"table_id": "<string>",
"name": "<string>",
"description": "<string>",
"prompt": "<string>",
"collect_from_multi_table": true,
"extract_model": "<string>",
"fields": [
{
"name": "Invoice Code",
"description": "Invoice code description",
"prompt": "<string>",
"use_prompt": true,
"alias": [
"Invoice No.",
"Bill Number"
],
"identity": "invoice_number",
"multi_value": true,
"duplicate_value_distinct": true,
"transform_settings": {
"datetime_settings": {
"format": "yyyy-MM-dd"
},
"enumerate_settings": {
"items": [
"VAT Special Invoice",
"VAT General Invoice",
"Electronic Invoice"
]
},
"regex_settings": {
"match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"replace": "$1/$2/$3"
},
"mismatch_action": {
"default_value": "N/A"
}
},
"id": "1234567890",
"extract_model": "Model 1"
}
]
}
]
}Body
application/json
⌘I

