Delete Chatbot Profile Picture

Delete Chatbot Profile Picture

This page helps you delete the Profile Picture of a specific Chatbot.

The Delete Chatbot Profile Picture API endpoint allows you to delete the Profile Picture associated with a specific chatbot.

Endpoint

POST https://www.chatzuri.com/api/v1/delete-chatbot-profile-picture

Request Headers

The API request must include the following headers.
  • Authorization: Bearer - The secret key for authenticating the API request.

Request Body

The request body should contain the following parameters:
  • chatbotId - (string, required): A unique identifier for the chatbot for which you want to delete the icon.

Example Request


const options = {method: 'DELETE', headers: {accept: 'application/json'}};

fetch('https://www.chatzuri.com/api/v1/delete-chatbot-profile-picture?chatbotId=%5BYour%20Chatbot%20ID%5D', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));


import requests

url = "https://www.chatzuri.com/api/v1/delete-chatbot-profile-picture?chatbotId=%5BYour%20Chatbot%20ID%5D"

headers = {"accept": "application/json"}

response = requests.delete(url, headers=headers)

print(response.text)





curl --request DELETE \
     --url 'https://www.chatzuri.com/api/v1/delete-chatbot-profile-picture?chatbotId=%5BYour%20Chatbot%20ID%5D' \
     --header 'accept: application/json'


DELETE /api/v1/delete-chatbot-profile-picture?chatbotId=%5BYour%20Chatbot%20ID%5D HTTP/1.1
Accept: application/json
Host: www.chatzuri.com

Response

The API response codes
  • 202 - Reply confirming the successful deletion of the Chatbot profile picture.
  • 400 - If the request is missing the chatbotId parameter.
  • 401 - If the API request is unauthorized..
  • 404 - If the chatbotId provided is invalid and does not correspond to any existing chatbot.
  • 500 - If there is an internal server error while processing the request.
The API response will be a JSON object with the following structure:

{
    "message": "Chatbot profile picture deleted successfully."
}

The Delete Chatbot Profile Picture API endpoint provides a way to remove the profile picture of a chatbot. Upon successful deletion, a confirmation message is returned in the response.

Error Handling

If there are any errors during the API request, appropriate HTTP status codes will be returned along with error messages in the response body. Make sure to handle these errors gracefully in your application.
That's it! You should now be able to delete a chatbot's profile picture using the create API.