Update file's content in a Vector Store
Update a specific document in a vector store.
The ID of the vector store.
The ID of the document.
The API key for authentication.
The new name for the document.
Document updated successfully.
Document updated successfully.
Example Requests
curl -X PATCH \
https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents/1234/ \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Product Overview"
}'const updateDocument = async (vectorStoreId, documentId, newName) => {
const response = await fetch(`https://api.rememberizer.ai/api/v1/vector-stores/${vectorStoreId}/documents/${documentId}/`, {
method: 'PATCH',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: newName
})
});
const data = await response.json();
console.log(data);
};
updateDocument('vs_abc123', 1234, 'Updated Product Overview');Path Parameters
vector-store-id
string
Required. The ID of the vector store containing the document.
document-id
integer
Required. The ID of the document to update.
Request Body
name
string
The new name for the document.
Response Format
Authentication
This endpoint requires authentication using an API key in the x-api-key header.
Error Responses
400
Bad Request - Invalid request format
401
Unauthorized - Invalid or missing API key
404
Not Found - Vector Store or document not found
500
Internal Server Error
This endpoint allows you to update the metadata of a document in your vector store. Currently, you can only update the document's name. This is useful for improving document organization and discoverability without needing to re-upload the document.
Last updated