Bulk Delete Documents
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/documents/bulk-delete \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"document_ids": [],
"source_id": "<string>",
"page_ids": []
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/bulk-delete"
payload = {
"document_ids": [],
"source_id": "<string>",
"page_ids": []
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({document_ids: [], source_id: '<string>', page_ids: []})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/bulk-delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deleted": 123,
"not_found": [
"<string>"
],
"errors": [
{}
],
"object": "bulk_result"
}Documents
Bulk Delete Documents
Bulk delete knowledge documents (max 100 per request).
Address documents either by their AGO UUID (‘document_ids’) or, for callers that imported them under their own key, by ‘source_id’ + ‘page_ids’. In page_id mode ‘not_found’ comes back as page_ids, so it matches the caller’s own records.
POST
/
api
/
v1
/
documents
/
bulk-delete
Bulk Delete Documents
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/documents/bulk-delete \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"document_ids": [],
"source_id": "<string>",
"page_ids": []
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents/bulk-delete"
payload = {
"document_ids": [],
"source_id": "<string>",
"page_ids": []
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({document_ids: [], source_id: '<string>', page_ids: []})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents/bulk-delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deleted": 123,
"not_found": [
"<string>"
],
"errors": [
{}
],
"object": "bulk_result"
}Authorizations
Body
application/json
Schema for bulk deleting documents. Max 100 IDs per request.
Documents are addressed either by their AGO UUID ('document_ids') or, for callers that imported them under their own key, by 'source_id' + 'page_ids'. Exactly one of the two addressing modes per request.
