Skip to main content
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
file
/
update
cURL
curl -X POST \
-H 'x-ti-app-id: 1234567890' \
-H 'x-ti-secret-code: 1234567890' \
-d '[{"workspace_id": "1234567890", "file_id": "202412190001", "data": {"fields": [{"key": "Invoice Code", "value": "3100231130"}]}}]' \
'https://docflow.textin.ai/api/app-api/sip/platform/v2/file/update'
{
  "code": 200,
  "msg": "<string>",
  "result": {
    "files": [
      {
        "workspace_id": 1234567890,
        "id": 202412190001
      }
    ]
  }
}

Authorizations

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

Body

application/json · object[]
workspace_id
string
required

Workspace ID

Example:

1234567890

file_id
string
required

File ID

Example:

202412190001

data
object
required

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.

Response

200 - application/json

Successfully updated file processing result

code
integer
required

Status code

Example:

200

msg
string
required

Status description

result
object
I