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.
| URL | https://api.telecomx.dk/tools/humantask/upload/file | |
|---|---|---|
| Method | POST | |
| Access level | RESELLER_ADMIN or ADMIN. | |
| Body | file | Binary file data |
n/a
| 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 |
{ "_id": "12345678901234567890ABCD", "name": "document.pdf", "type": "pdf", "size": 12345 }
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <unspecified> |