Update Doc Metadata Details
PUT/v1/metadata/:workspace_id/:document
Update the details of a document's metadata.
Args: document (str): The ID or name of the document. document_patch (DocumentMetadataPatch): The document metadata patch containing the updated details. repository (DocumentMetadataRepository): The repository for managing document metadata. user (TokenData): The token data of the authenticated user.
Returns
Union[DocumentMetadataRead, HTTPException]: The updated document metadata if successful, otherwise an HTTPException.
Raises
HTTP_404: If no document with the specified ID or name is found.
Request
Responses
- 200
- 422
Successful Response
Validation Error