Skip to main content
PATCH
Update a variable

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

variableId
string
required

Variable ID

Body

application/json

Body

Request body for updating a variable. Variable type cannot be changed.

key
string

Variable key (must be unique within scope)

Minimum string length: 1
value
string

New variable value or write-only secret value

dataType
enum<string>
default:STRING

The data type of the variable value

Available options:
STRING,
SECRET,
OBJECT,
ARRAY,
NUMBER

Response

200

Response containing a single variable

variable
Variable · object
required

A variable. Secret responses contain metadata only and never expose the value.

error
string | null
required