Skip to main content
PATCH
Update variables

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Path Parameters

userID
string
required

The ID identifying this conversation. Any stable string you choose; the same value addresses the same conversation on every call.

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

version
enum<string>
required

Which version of the environment to read: the editable draft or the published one.

Available options:
draft,
published

Body

application/json
variables
object
required

Variable values to set on the conversation session, keyed by variable name.

Response

200 - application/json

Confirms the supplied variables were merged into the session's existing values. The response is a message only, so read the state back if you need the merged result.

message
string
required

A human-readable message confirming the update.