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.
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).
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.