Skip to main content
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
sample
/
batch_upload
Upload Category Samples
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/category/sample/batch_upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-ti-app-id: <api-key>' \
  --header 'x-ti-secret-code: <api-key>' \
  --form workspace_id=1234567890 \
  --form category_id=1234567890 \
  --form 'files=<string>' \
  --form with_detail=true \
  --form files.items='@example-file'
{
  "code": 200,
  "msg": "<string>",
  "result": {
    "samples": [
      {
        "sample_id": "1234567890",
        "file_name": "invoice_sample.pdf"
      }
    ]
  }
}

Authorizations

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

Body

multipart/form-data
workspace_id
string
required

Workspace ID

Example:

"1234567890"

category_id
string
required

File category ID

Example:

"1234567890"

files
file[]
required

Sample file list, maximum 20 files

Required array length: 1 - 10 elements
with_detail
boolean

When true, the response returns the full sample list of this category

Response

200 - application/json

Successfully batch uploaded samples

code
integer
required

Status code

Example:

200

msg
string
required

Status description

result
object