v1

latestOpenAPI 3.1.02026-07-2676188241.3 KB
Guided Documents

Update document

Updates the document's name, labels, or rendered output (stringDocument / structuredDocument). Use this to persist edits made to a previously generated document.

patch/documents/{documentID}

Request body

namestring
stringDocumentobject
structuredDocumentobject

Response

OK

idstring uuid required
namestring required
templateIdstring uuid required

The template ID used for generation. For a plain templateRef with no overrides this is the referenced template. For other paths it is the newly saved auto-generated template aggregate.

templateVersionIdstring uuid required

The specific template version that was used for generation.

languagestring required

The BCP 47 language tag of the generated output.

interactionIdstring uuid nullable

The interaction whose context was used to generate this document, if supplied.

stringDocumentobject required

The generated document as a map of section key to rendered string output.

structuredDocumentobject nullable

The generated document as a structured object keyed by section.

createdAtstring date-time required
updatedAtstring date-time required