Mettre à jour le contenu d'un fichier dans un magasin de vecteurs
patch
Update a specific document in a vector store.
Path parameters
vector-store-idstringRequired
The ID of the vector store.
document-idintegerRequired
The ID of the document.
Header parameters
x-api-keystringRequired
The API key for authentication.
Body
namestringOptional
The new name for the document.
Responses
200
Document updated successfully.
application/json
idintegerOptional
Document ID.
namestringOptional
Document name.
typestringOptional
Document type.
vector_storestringOptional
The ID of the vector store.
sizeintegerOptional
Document size in bytes.
statusstringOptional
Document status.
processing_statusstringOptional
Processing status.
indexed_onstring · date-time · nullableOptional
Time when the document was indexed.
status_error_messagestring · nullableOptional
Error message for status.
createdstring · date-timeOptional
Creation timestamp.
modifiedstring · date-timeOptional
Modification timestamp.
patch
/vector-stores/{vector-store-id}/documents/{document-id}/200
Document updated successfully.
Exemples de Requêtes
curl -X PATCH \
https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents/1234/ \
-H "x-api-key: VOTRE_CLE_API" \
-H "Content-Type: application/json" \
-d '{
"name": "Aperçu du Produit Mis à Jour"
}'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': 'VOTRE_CLE_API',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: newName
})
});
const data = await response.json();
console.log(data);
};
updateDocument('vs_abc123', 1234, 'Aperçu du Produit Mis à Jour');Paramètres de chemin
Paramètre
Type
Description
Corps de la demande
Paramètre
Type
Description
Format de Réponse
Authentification
Réponses d'erreur
Code d'état
Description
PreviousRechercher des documents de magasin de vecteurs par similarité sémantiqueNextTélécharger des fichiers dans un magasin de vecteurs
Last updated