Delete a training source
Remove a source and everything indexed from it. This cannot be undone. Requires the write:sources permission.
Authorization
BearerAuth write:sourcesIn: header
Scope: write:sources
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/v1/agents/string/sources/1"{
"deleted": true
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}Update a text source PATCH
Update a text snippet in place: change its title, its content, or both. Omitted fields keep their current values. The old content stops matching and the new content is re-indexed in the background; watch the source `status` until it becomes `indexed`. Only text sources can be updated; refresh url sources by retraining and file sources by uploading a new file. Requires the `write:sources` permission.
Upload a file source POST
Upload a document or image (PDF, DOCX, PPTX, CSV, XLS/XLSX, TXT, Markdown, HTML, JSON, PNG, JPEG, WebP, or GIF; 10 MB max) as a `file` training source and queue background indexing. Send it as a `file` field in a `multipart/form-data` body. Poll `GET /agents/{id}/sources` or `GET /agents/{id}/training-status` to watch progress. Requires the `write:sources` permission.