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.
| 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 |
https://api.telecomx.dk/destination/DE/image
| Json object | ||
|---|---|---|
| success | Boolean | True on success. |
| image | ObjectId | Id of the uploaded image. |
{ "success": true, "image": "650000000000000000000001" }
| 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> |