api:iptv:settings:uploadlogo
Table of Contents
API : IPTV : Settings : Upload logo
Introduction
This request is used to upload a logo for the customer, to be used in app and web branding. Supported formats are JPG and PNG.
The picture will be stored as a 500×90 pixels PNG, if the uploaded picture does not conform to this size, it will be scaled and cropped to fit the size.
The upload must be performed as a multipart/form-data post request.
Request
| URL | https://api.telecomx.dk/iptv/settings/CUSTOMER_ID/logo | |
|---|---|---|
| Method | POST | |
| Access level | MANAGER or OWNER if customer has feature IPTVBUSINESS RESELLER if customer has IPTVBUSINESS or IPTVPRIVATE ADMIN |
|
| Params | CUSTOMER_ID | Id of the customer to upload the logo to |
| Body | file | Binary image data |
Request example
POST https://api.telecomx.dk/iptv/settings/1234567890ABCDEF1234578/logo
Response
| Json object | ||
|---|---|---|
| success | Boolean | True on success. |
Example
{ success: true, logo: '123456789012345678901234, logoUrl: 'https:/api.telecomx.dk/iptv/settings/12345678901234567890ABCD/logo }
Errors
| Error code | Message | Description |
|---|---|---|
| 404 | id | Not found |
| 409 | customer | Customer cannot host common IPTV settings |
| 404 | file | The file was missing or invalid |
| 422 | file | Filetype must be PNG or JPG |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | Failed to scale/crop image |
| 500 | internal_error | <unspecified> |
api/iptv/settings/uploadlogo.txt · Last modified: 2017/01/24 10:16 by Per Møller