Download the mass-upload mapping template
GET
/document-mass-uploads/templateReturns 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.
403Error
Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
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"