API Reference
Update document
Update a document's name or description
On this page
This endpoint updates the metadata of an existing document. You can only update the name and description - the document type and content cannot be changed.
Path Parameters
knowledgebaseIdintegerrequired
The unique identifier of the knowledgebase
documentIdintegerrequired
The unique identifier of the document to update
Request Body
namestring
The new name for the document (max 255 characters)
descriptionstring
The new description for the document (max 255 characters)
Response
messagestring
Success message
dataobject
The updated document object
{
"message": "Document updated successfully.",
"data": {
"id": 1,
"name": "Updated Product Manual",
"description": "Revised user guide with new features",
"type": "pdf",
"type_label": "PDF",
"status": "active",
"status_label": "Active",
"updated_at": "2025-01-08T15:45:00.000000Z"
}
}
{
"error": "Knowledgebase not found."
}
{
"error": "Document not found."
}
{
"message": "The name may not be greater than 255 characters.",
"errors": {
"name": [
"The name may not be greater than 255 characters."
]
}
}
To update the content of a document, you need to delete the existing document and create a new one with the updated content.
Related guides
API Reference
Introduction
Welcome to the VoxLink API
Read guide →API Reference
Authentication
Learn how to authenticate your API requests
Read guide →API Reference
Get current user
Get the authenticated user's profile information
Read guide →API Reference
List assistants
List all assistants for the authenticated user with pagination
Read guide →