Delete Single Custom Bot
DELETE https://api.unltd.ai/v1/organizations/:organizationId/bots/:botSlug/
This endpoint deletes a specific Bot entity that belongs to an organization, based on the provided organization ID and bot slug.
Path Parameters
organizationId
string
The unique identifier of the organization.
botSlug
string
The unique slug of the organization's bot to be deleted.
Permissions
This request requires authentication as an organization admin.
API Example
const fetch = require('node-fetch');
async function fetchApiData() {
const response = await fetch('https://api.unltd.ai/v1/organizations/example_org_id/bots/example_bot/', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer ',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
}
fetchApiData();
Response
204 success
The response object will be returned as a message.
{
"message": "Bot deleted successfully."
}