Icono del canal de carga (Base64) 2022-07-27

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.com/channels/CHANNEL_ID/device/upload_icon_base64?parameters

Where CHANNEL_ID is the ID of the target channel.

URL Parameters

NameTypeRequiredDescription
account_key or token_idStringRequiredSpecify the account_key from the user account or token_id obtained after login.

HTTP Request Payload

NameTypeRequiredDescription
channel_iconStringRequiredBase64 encoded image
nameStringRequiredFull 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

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