跳转到主要内容
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
file
/
delete
删除任务
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/file/delete \
  --header 'Content-Type: application/json' \
  --header 'x-ti-app-id: <api-key>' \
  --header 'x-ti-secret-code: <api-key>' \
  --data '{
  "workspace_id": 1234567890,
  "batch_number": [
    "202412190001",
    "202412190002"
  ],
  "task_id": [
    "1978297791713619968",
    "1978297791713619969"
  ],
  "file_id": [
    "1978297792124661760",
    "1978297792124661761"
  ],
  "start_time": 1760523600,
  "end_time": 1760523600
}'
{
  "code": 200,
  "msg": "<string>",
  "result": {
    "deleted_count": 1
  }
}

Authorizations

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

Body

application/json
workspace_id
string
required

空间ID

Example:

1234567890

batch_number
string[]

批次编号列表

Example:
["202412190001", "202412190002"]
task_id
string[]

任务ID列表

Example:
[
"1978297791713619968",
"1978297791713619969"
]
file_id
string[]

文件ID列表

Example:
[
"1978297792124661760",
"1978297792124661761"
]
start_time
integer

开始时间(epoch时间戳,单位:秒)

Example:

1760523600

end_time
integer

结束时间(epoch时间戳,单位:秒)

Example:

1760523600

Response

200 - application/json

成功删除任务

code
integer
required

状态码

Example:

200

msg
string
required

状态描述

result
object
I