API v1AI bots
Remove a file a bot may send
deletehttps://api.whatsable.app/v1/ai-bots/{id}/files/{file_id}
Build a request to copy
This page never sends a request. Fill in the fields, then copy the request and run it from your server.
Request
curl -X DELETE 'https://api.whatsable.app/v1/ai-bots/string/files/string'
bearerAuthheader
AuthorizationBearer <nfy_live_<32 characters>>An API key from Settings > API keys, sent as Authorization: Bearer <key>.
id*stringThe bot id.
Length
1 <= length <= 64file_id*stringThe sendable file id. It must belong to this bot.
Length
1 <= length <= 64The file was removed.
application/json- response
object*stringid*stringLength
1 <= length <= 64deleted*booleancurl -X DELETE 'https://api.whatsable.app/v1/ai-bots/string/files/string'Example Response
{ "object": "ai_bot_file", "id": "string", "deleted": true}Change a sendable file's name, description or switch PATCH
Changes the name, description or `active` switch of a file that an AI bot may send. The change takes effect on the bot's next reply, also while the bot answers customers.
Choose the bot a number answers with PUT
Sets the default AI bot of a number. It answers every conversation on the number that has no bot of its own. An `archived` bot cannot be assigned.