curl --request POST \
--url https://api.zeroentropy.dev/v1/documents/update-document \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"collection_name": "<string>",
"path": "<string>",
"metadata": {},
"index_status": "not_parsed"
}
'{
"message": "Success!"
}Updates a document. This endpoint is atomic.
Currently both metadata and index_status are supported.
metadata, the document must have index_status of indexed. After this call, the document will have an index_status of not_indexed, since the document will need to reindex with the new metadata.index_status, setting it to not_parsed or not_indexed requires that the document must have index_status of parsing_failed or indexing_failed, respectively.A 404 Not Found status code will be returned, if the provided collection name or document path does not exist.
curl --request POST \
--url https://api.zeroentropy.dev/v1/documents/update-document \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"collection_name": "<string>",
"path": "<string>",
"metadata": {},
"index_status": "not_parsed"
}
'{
"message": "Success!"
}Documentation Index
Fetch the complete documentation index at: https://docs.zeroentropy.dev/llms.txt
Use this file to discover all available pages before exploring further.
The name of the collection.
The filepath of the document that you are updating. A 404 Not Found status code will be returned if no document with this path was found.
If this field is provided, the given metadata json will replace the document's existing metadata json. In other words, if you want to add a new field, you will need to provide the entire metadata object (Both the original fields, and the new field).
Show child attributes
If the document is in the index_status of parsing_failed orindexing_failed, then this endpoint allows you to update the index status tonot_parsedandnot_indexed`, respectively. This allows the document to re-attempt to parse/index after failure.
not_parsed, not_indexed Successful Response
This string will always be "Success!". This may change in the future.