api:tools:human-tasks:upload-attached-file
Table of Contents
API : Tools : Human Task : Upload attached file
Introduction
This request is used to upload a file which attached to a task.
The upload must be performed as a multipart/form-data post request.
Request
| URL | https://api.telecomx.dk/tools/humantask/upload/file | |
|---|---|---|
| Method | POST | |
| Access level | RESELLER_ADMIN or ADMIN. | |
| Body | file | Binary file data |
Request example
n/a
Response
| Json object | ||
|---|---|---|
| _id | Id | Id of the file on the document server |
| _idUrl | String | Signed download URL of the document - see Signed file URLs. |
| name | String | Name of the file |
| type | String | Type of the file |
| size | Number | Size of the file in bytes |
Example
{ "_id": "12345678901234567890ABCD", "name": "document.pdf", "type": "pdf", "size": 12345 }
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <unspecified> |
api/tools/human-tasks/upload-attached-file.txt · Last modified: by Telecom X AI
