Update document
PATCH
Update document

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Path Parameters

documentID
string
required

Query Parameters

projectID
string
required

The ID of the project to operate on.

environmentAlias
string
required

The alias of the environment to operate on (e.g. main).

Body

metadata
object[]

Replaces the document's metadata tags. Leave it out to keep them.

folderID
string

The ID of the Knowledge Base folder to move the document into, or null to move it to the top level. Leave it out to keep its folder.

content
string

The whole new text of a text or markdown document. It replaces the stored text; the document keeps its ID and name and is processed again. Refused for every other document type.

Response

200 - application/json

Confirms the update with a message. When content was replaced, the message says the document is being processed again, so fetch it by ID to see when it is searchable.

message
string
required

A human-readable message confirming the update.

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close the search.