Skip to main content
PATCH
Update variable

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Path Parameters

variableID
string
required

The ID of the variable to operate on.

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

application/json
name
string
color
string

The display color of the variable in the Voiceflow editor.

description
string | null

A short description of what the variable stores.

defaultValue
string | null

The initial value of the variable at the start of a conversation.

Response

200 - application/json

Confirms the variable was updated. The body is a message rather than the revised variable, so read the variable back to see its new default value or description.

message
string
required

A human-readable message confirming the update.