Document Mass Uploads

Download the mass-upload mapping template

GET/document-mass-uploads/template

Returns the CSV mapping file that goes inside the zip, as text/csv with a UTF-8 byte order mark: the header row filename, directory_id and one example row. Each row maps a file in the zip to the folder it should land in. Gate: view-all-documents or super admin only, else 403 missing_permission (forbidden for a token with no user); the deprecated GET /documents/mass-upload/template stays open to any token with the scope. It changes nothing.

Responses

200

The CSV mapping template.

401

Authentication failed. error.code is one of invalid_token, expired, revoked.

Error
403

Authorization failed. error.code is one of org_disabled, ip_blocked, missing_scope, scope_disabled, user_disabled.

Error
429

Rate limit exceeded (error.code = rate_limited).

Error

Examples

curl https://your-org-domain/kong/core/api/v2/document-mass-uploads/template\
  -H "Authorization: Bearer $HELM_API_KEY"\
  -H "Content-Type: application/json"