Skip to main content
POST
/
v0
/
chatbots
/
{chatbotId}
/
icons
Update Chatbot Icons
curl --request POST \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/icons \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form iconType=CHAT_BUBBLE \
  --form iconSrc='@example-file'
{
  "success": true,
  "message": "Updated the chatbot icon successfully",
  "data": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chatbotId
string
required

Id of the chatbot

Body

multipart/form-data

Request body to add/update the chatbot icons

Request Body

iconType
enum<string>
required

Type of the icon

Available options:
BOT,
PERSON,
AGENT,
WATERMARK,
CHAT_BUBBLE
Example:

"CHAT_BUBBLE"

iconSrc
file
required

Icon file

Response

OK

Success Response

success
boolean

Indicates whether this is success response or error response

message
string

Overall message regarding the operation performed

data
object

Data returned from the server