Knowledge base
Update document
Overwrite the name and content of an existing document.
PUT
https://app.elunos.ai/api/v1/knowledge/documents/{id}Overwrites the name, content or folder of a document. Fields you do not send stay.
Path parameters
iduuidPflichtID of the document.
Body
namestringNew display name.
content_textstringNew content of a text document.
folder_iduuid | nullMoves the document to another folder. `null` takes it out of its folder.
Example
curl -X PUT https://app.elunos.ai/api/v1/knowledge/documents/019f94f9-f54b-7303-a1b6-672be034af82 \
-H "Authorization: Bearer np_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"content_text": "Mo bis Fr 8 bis 18 Uhr, Sa 9 bis 12 Uhr"
}'Response
{
"data": {
"id": "019f94f9-f54b-7303-a1b6-672be034af82",
"name": "Öffnungszeiten",
"source_type": "text",
"folder_id": "019f94f8-0a1b-7c2d-8e3f-4a5b6c7d8e9f",
"sync_status": "synced",
"sync_error": null,
"created_at": "2026-09-01T09:00:00+02:00",
"updated_at": "2026-09-22T11:00:00+02:00"
}
}To replace a file, send POST as multipart/form-data with the extra field _method=PUT. That is a quirk of multipart uploads, not a mistake.
curl -X POST https://app.elunos.ai/api/v1/knowledge/documents/019f94f9-f54b-7303-a1b6-672be034af82 \
-H "Authorization: Bearer np_xxxxxxxx" \
-F "_method=PUT" \
-F "file=@price-list-2026.pdf"