API
Upload chatbot profile picture
Upload Chatbot Profile Picture API Guide
The Upload Chatbot Profile Picture API endpoint allows you to update the profile picture of a specific chatbot.
Endpoint
Request Headers
The API request must include the following headers:
Authorization: Bearer <Your-Secret-Key>
- The secret key for authenticating the API request.Accept: application/json
- The accepted response content type.Content-Type: multipart/form-data
- The content type for the form data.
Request Body
The request body should be a multipart/form-data form containing the following parameters:
chatbotId
(string, required): The unique identifier for the chatbot you want to update the profile picture for.profilePictureFile
(file, required): The profile picture file to be uploaded. The image must be a square (length = width) and its size must be under 1MB.
Example Request
Response
- 200: Returns a confirmation message indicating the successful update of the chatbot’s profile picture.
- 400: If the chatbot ID is missing.
- 401: If the request is unauthorized.
- 404: If the chatbot ID is invalid.
- 500: If there is an internal server error.
The Upload Chatbot Profile Picture API endpoint provides a way to update the profile picture of a chatbot. Upon successful update, a confirmation message is returned in the response.