跳转到主要内容
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
sample
/
batch_download
下载类别样本(ZIP)
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/category/sample/batch_download \
  --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",
  "sample_ids": [
    "1234567890",
    987654321
  ]
}
'
"<string>"

授权

x-ti-app-id
string
header
必填
x-ti-secret-code
string
header
必填

请求体

application/json
workspace_id
string
必填

空间ID

示例:

"1234567890"

category_id
string
必填

文件类别ID

示例:

"1234567890"

sample_ids
string[]

要下载的样本ID列表。不传时下载该类别全部样本。

示例:
["1234567890", 987654321]

响应

200 - application/zip

成功下载样本 ZIP 文件

The response is of type file.