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

https://api.ubibot.io/channels/CHANNEL_ID/device/upload_icon_base64?parameters

Where CHANNEL_ID is the ID of the target channel.

URL Parameters

Name Type Required Description
account_key or token_id String Required Specify the account_key from the user account or token_id obtained after login.

HTTP Request Payload

Name Type Required Description
channel_icon String Required Base64 encoded image
name String Required Full name of the source file including the suffix. The image must be a JPG, GIF or PNG file with a maximum size of 1MB.

Response

200 Success. Body contains a JSON object with the success message.

Error: See the separate list of error codes for more details