跳转到主要内容
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": "发票代码", "value": "3100231130"}]}}]' \
'https://docflow.textin.com/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

空间ID

Example:

1234567890

file_id
string
required

文件ID

Example:

202412190001

data
object
required

全量更新字段。
注意,即使只更新部分字段,也必须包含所有字段。
如果传入的字段较原字段多,则多出的字段会被添加。
如果传入的字段较原字段少,则缺少的字段会被删除。
如果传入的字段值较原字段值有变化,则字段值会被更新。
如果传入的字段与原字段完全相同,则字段会被保留。

Response

200 - application/json

成功更新文件处理结果

code
integer
required

状态码

Example:

200

msg
string
required

状态描述

result
object