User Tools

Site Tools


api:tools:human-tasks:upload-attached-image

API : Tools : Human Task : Upload attached Image

Introduction

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.

Request

URL https://api.telecomx.dk/tools/humantask/upload/image
Method POST
Access level RESELLER_ADMIN or ADMIN.
Body file Binary image data

Request example

n/a

Response

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

Example

{
  "_id": "12345678901234567890ABCD",
  "name": "imagefile.png",
  "type": "png",
  "size": 12345,
  "width": 800,
  "height": 1337
}

Errors

Error code Message Description
422 file Invalid image file
403 access_denied Insufficient access level
500 internal_error <unspecified>
api/tools/human-tasks/upload-attached-image.txt · Last modified: by Telecom X AI

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki