Delete multiple sources
Delete list of sources base on their uuids
Endpoint
POST / api / v1 / data-sources / delete
Authorization
Authorization string Bearer <your_token>
Body
uuids string[] required
Request example
curl --location --request POST 'https://app.aichatbothub.com/api/v1/data-sources/delete' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>'
--data-raw '{
"uuids": []
}'
import requests
url = 'https://app.aichatbothub.com/api/v1/data-sources/delete'
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <token>'
}
data = {
"uuids": [],
}
response = requests.POST(url, headers=headers, json=data)
if response.status_code == 200:
print("Request successful! Sources deleted.")
else:
print("Request failed with status code:", response.status_code)
print(response.text)
const axios = require('axios');
const url = 'https://app.aichatbothub.com/api/v1/data-sources/delete';
const headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <token>'
};;
const data = {
"uuids": []
};
axios.post(url, data, { headers })
.then(response => {
console.log('Request successful! Sources deleted.');
})
.catch(error => {
console.error('Request failed:', error);
});
success boolean
Indicates if api call was successful
Response example