Updates the document name and/or description. At least one field must be provided. Invalidates KB cache for all agents linked to this document.
cURL
curl --request PUT \ --url https://api.vocobase.com/api/v2/documents/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>" } '
{ "success": true, "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "type": "pdf", "status": "uploading", "file_size": 123, "mime_type": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.
rg_live_xxxx
Document ID.
New document name.
1 - 100
New description. Pass null or empty string to remove.
null
500
Document updated.
Show child attributes