User Tools

Site Tools


api:destination:image-upload

API : Destination Upload Image

Introduction

This request is used to upload an image (flag) for the destination. A previously uploaded image is replaced.

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

Request

URL https://api.telecomx.dk/destination/COUNTRY_CODE/image
Method POST
Access level RESELLER_ADMIN with FINANCE feature, or ADMIN.
Params COUNTRY_CODE 2-Char ISO3166 country code of the destination
Body file Binary image data

Request example

https://api.telecomx.dk/destination/DE/image

Response

Json object
success Boolean True on success.
image ObjectId Id of the uploaded image.

Example

{
  "success": true,
  "image": "650000000000000000000001"
}

Errors

Error code Message Description
422 id Country code is not valid
404 id Destination not found
422 destination_flag No file uploaded
422 destination_flag Invalid image file
500 destination_flag Cannot delete file on image service
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/destination/image-upload.txt · Last modified: by Mikkel Meerwaldt Jørgensen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki