This request is used to upload an image which attached to a task. Supported formats are PNG, JPG, GIF, TIFF.
The upload must be performed as a multipart/form-data post request.
| URL | https://api.telecomx.dk/tools/humantask/upload/image | |
|---|---|---|
| Method | POST | |
| Access level | RESELLER_ADMIN or ADMIN. | |
| Body | file | Binary image data |
n/a
| Json object | ||
|---|---|---|
| _id | Id | Id of the image on the image server |
| _idUrl | String | Signed download URL of the image (JPEG) - see Signed file URLs. |
| name | String | Name of the image file |
| type | String | Type of the image |
| size | Number | Size of the image in bytes |
| width | Number | Width of image in pixels |
| height | Number | Height of the image in pixels |
{ "_id": "12345678901234567890ABCD", "name": "imagefile.png", "type": "png", "size": 12345, "width": 800, "height": 1337 }
| Error code | Message | Description |
|---|---|---|
| 422 | file | Invalid image file |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <unspecified> |