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

The name used to reference the variable in the function code.

description
string | null

A human-readable description of what the variable holds.

Response

200 - application/json

Confirms the function variable was updated. The body confirms the write rather than returning the variable, so fetch the variable again to check its name, description, and whether it is an input or an output.

message
string
required

A human-readable message confirming the update.