curl --request POST \
--url https://docflow.textin.com/api/app-api/sip/platform/v2/file/update \
--header 'Content-Type: application/json' \
--header 'x-ti-app-id: <api-key>' \
--header 'x-ti-secret-code: <api-key>' \
--data '
[
{
"workspace_id": 1234567890,
"file_id": 202412190001,
"data": {
"fields": [
{
"key": "Invoice Code",
"value": "3100231130",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "Invoice Number",
"value": "28737000",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
],
"items": [
[
{
"key": "Goods and Services Name",
"value": "*Electronic Computer*Microcomputer Host",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "Specification Model",
"value": "DMS-SC68",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
],
[
{
"key": "Goods and Services Name",
"value": "*Mechanical Computer*Supercomputer Host",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "Specification Model",
"value": "AN/FSQ-7",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
]
]
}
}
]
'{
"code": 200,
"msg": "<string>",
"result": {
"files": [
{
"workspace_id": 1234567890,
"id": 202412190001
}
]
}
}Update file processing result. Usually used after manual review and proofreading to upload modified key-value pairs, overriding automatically recognized results.
curl --request POST \
--url https://docflow.textin.com/api/app-api/sip/platform/v2/file/update \
--header 'Content-Type: application/json' \
--header 'x-ti-app-id: <api-key>' \
--header 'x-ti-secret-code: <api-key>' \
--data '
[
{
"workspace_id": 1234567890,
"file_id": 202412190001,
"data": {
"fields": [
{
"key": "Invoice Code",
"value": "3100231130",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "Invoice Number",
"value": "28737000",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
],
"items": [
[
{
"key": "Goods and Services Name",
"value": "*Electronic Computer*Microcomputer Host",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "Specification Model",
"value": "DMS-SC68",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
],
[
{
"key": "Goods and Services Name",
"value": "*Mechanical Computer*Supercomputer Host",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
},
{
"key": "Specification Model",
"value": "AN/FSQ-7",
"position": [
{
"page": 0,
"vertices": [
0,
0,
100,
0,
100,
100,
0,
100
]
}
]
}
]
]
}
}
]
'{
"code": 200,
"msg": "<string>",
"result": {
"files": [
{
"workspace_id": 1234567890,
"id": 202412190001
}
]
}
}Workspace ID
1234567890
File ID
202412190001
Full field update. Note: Even if only updating partial fields, all fields must be included. If the incoming fields are more than the original fields, the additional fields will be added. If the incoming fields are fewer than the original fields, the missing fields will be deleted. If the incoming field values differ from the original field values, the field values will be updated. If the incoming fields are identical to the original fields, the fields will be preserved.
Show child attributes