File Operations

Delete an uploaded file

This API endpoint allows you to delete a previously uploaded file associated with a chatbot.

post/delete-file

Request

  • Base URL: https://api.chat-data.com/api/v2
  • URL: https://api.chat-data.com/api/v2/delete-file
  • Auth: HTTP bearer

Request body

chatbotIdstring required

The unique identifier allocated to the chatbot.

fileUrlstring required

The URL of the file to be deleted.

Example request

{
  "fileUrl": "https://example.blob.core.windows.net/chatfiles/6650f1c2a9e4b83d2c7a1f05/product-handbook.pdf"
}

Response

Successful response.

status'success' required
messagestring required

A confirmation message.

Example response

{
  "message": "File deleted successfully."
}

Changes

No recorded changes to this operation across all 1 revision of this API.