Update a group variable
PUT
/api/v4/groups/{id}/variables/{key}
Updates a specified group variable. If there are multiple variables with the same key, use filter to select the correct environment_scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The ID of a group or URL-encoded path of the group owned by the authenticated user
key
required
string
The key of a variable
Request Body
Section titled “Request Body”Media typeapplication/json
object
value
The value of a variable
string
protected
Whether the variable is protected
boolean
masked
Whether the variable is masked
boolean
raw
Whether the variable will be expanded
boolean
variable_type
The type of the variable. Default: env_var
string
environment_scope
The environment scope of the variable
string
description
The description of the variable
string
Responses
Section titled “Responses”OK
Media typeapplication/json
object
variable_type
string
key
string
value
string
hidden
boolean
protected
boolean
masked
boolean
raw
boolean
environment_scope
string
description
string
Example
{ "variable_type": "env_var", "key": "TEST_VARIABLE_1", "value": "TEST_1", "environment_scope": "*", "description": "This variable is being used for ..."}400 Bad Request
Group Variable Not Found