Documents
Replaces the file of an existing sheet document with a new CSV or Excel file (up to 2 MB and 10,000 rows) and ingests it again. Omit sheet_desc or searchable_columns to keep the current values; send an empty list [] to let the agent search every column.
curl --request PUT \
--url 'https://api.nabrah.ai/api/ext/document/<document_id>/file' \
--header 'X-API-Key: <your-api-key>'{
"id": "00000000-0000-4000-8000-000000000000",
"knowledge_base_id": "00000000-0000-4000-8000-000000000000",
"type": "file",
"status": "unknown",
"title": "string",
"summary": "string",
"filename": "string",
"created_at": "2026-01-15T12:00:00.000Z",
"updated_at": "2026-01-15T12:00:00.000Z",
"source_format": "pdf",
"tabular_schema": {},
"sheet_desc": "string",
"searchable_columns": [
"string"
]
}X-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
document_idstringrequiredSuccessful Response
application/json
Validation Error
application/json