Overview
The Upload Channel Icon call allows you to upload or replace the custom icon associated with the channel. There are two methods. The first method attaches the file with the icon to the API call. The second method triggers an HTTP request with a Base64 encoded image.
HTTP Method
POST
API URL (File method)
https://webapi.ubibot.com/channels/CHANNEL_ID/device/upload_icon?parameters
Where CHANNEL_ID is the ID of the target channel.
URL Parameters (File method)
Name |
Type |
Required |
Description |
account_key |
String |
Required |
Specify the account_key obtained from the web console panel. |
channel_icon |
File |
Required |
The image must be a JPG, GIF or PNG file with a maximum size of 1MB. |
Response
An HTTP code of 200 is responded for each successful data requests. Body contains a JSON object with the success message.
Error: See the separate list of error codes for more details