Upload a file
post
https://api.chat-data.com/ api/ v2/ upload- file/ {chatbotId}/ upload-file/ {chatbotId}Any keyWorkspace or chatbot key
Upload a file to be used with a chatbot, for example as a files attachment in /chat or /live-chat. The file is stored in the chatbot's folder under its original name. If a file with that name already exists, it is not replaced: nothing is uploaded and the existing file's URL is returned. Uploads count toward the workspace's file storage limit.
Path parameters
Required
chatbotIdstringRequest body
Sending 1 of 1 fieldRequired
filefileOnly these fields are sent (multipart/form-data).