Delete single source base on uuid
Last updated 4 days ago
POST / api / v1 / data-source / {uuid} / delete
/ api / v1 / data-source / {uuid} / delete
Authorization string Bearer <your_token>
Bearer <your_token>
uuid string required
success boolean
Indicates if api call was successful
curl --location --request POST 'https://app.aichatbothub.com/api/v1/data-source/{uuid}/delete' \ --header 'Authorization: Bearer <token>'
import requests uuid = '<source-uuid>' url = f'https://app.aichatbothub.com/api/v1/data-source/{uuid}/delete' headers = { 'Authorization': 'Bearer <token>' } response = requests.POST(url, headers=headers) if response.status_code == 200: print("Request successful! Source deleted.") else: print("Request failed with status code:", response.status_code) print(response.text)
const axios = require('axios'); const uuid = '<source-uuid>' const url = `https://app.aichatbothub.com/api/v1/data-source/${uuid}/delete`; const headers = { 'Authorization': 'Bearer <token>' }; axios.post(url, { headers }) .then(response => { console.log('Request successful! SOurce deleted.'); }) .catch(error => { console.error('Request failed:', error); });
{ "success": true }