Update a retrieval document

http
PUT /projects/{project_reference}/knowledge/retrieval-documents/{retrieval_document_id}

Update retrieval document. Requires project.knowledge.write.

Parameters

NameInRequiredDescription
project_referencepathYes
retrieval_document_idpathYesRetrieval document ID.

Request body

FieldTypeRequiredDescription
titlestringYesDocument title, at least one character.
sourcestringUpstream source reference, such as a file path or URL. Defaults to "".
typestringDocument type label. Defaults to "".
metadataobjectStructured metadata stored with the record: an object of string keys to JSON values.
expected_revisionstringYesThe revision you read. A changed record is a conflict; a missing record is not_found. Title, source, type and metadata are replaced, and the response includes the new revision.

Responses

StatusDescription
200The updated record with its new revision.
400invalid_input: invalid title, metadata or expected_revision
401unauthenticated
404not_found: project or retrieval document not found
409conflict: the record changed since expected_revision was read
500internal