v1

latestOpenAPI 3.0.32026-07-128910.2 KB
environments

updateEnvironmentVariable

Create or update an environment variable. Acts as an upsert — creates the variable if it does not exist. If group is provided and the group does not yet exist, it is created automatically.

put/v1/environments/{key}

Request body

type'String' | 'SecretString'
valuestring
descriptionstring
groupstring
protectedboolean

Whether the variable is protected from editing

Response

Updated environment variable

keystring required
type'String' | 'SecretString' required
descriptionstring
groupstring

Optional group name for organising variables in the UI

valuestring

Value is returned for String type, omitted for SecretString

protectedboolean

Whether the variable is protected from editing

created_atstring date-time required
updated_atstring date-time required