Table of Contents

API : Destination Upload Image

Introduction

This request is used to upload an image of the destination.

The upload must be performed as a multipart/form-data post request.

Request

URL https://api.telecomx.dk/destination/DESTINATION_ID/image
Method POST
Access level RESELLLER_ADMIN with FINANCE feature, or ADMIN.
Params DESTINATION_ID Id of the destination to upload the image for
Body file Binary image data

Request example

https://api.telecomx.dk/destination/1234567890ABCDEF1234578/image

Response

Json object
success Boolean True on success.

Example

{
  success: true,
  image: '123456789012345678901234'
}

Errors

Error code Message Description
400 bad_request Id not found in request URI
404 destination Destination not found
404 file The file was missing or invalid
403 access_denied Insufficient access level
500 internal_error Failed to scale/crop image
500 internal_error <unspecified>