Skip to content

Update a variable for a pipeline schedule

PUT
/api/v4/projects/{id}/pipeline_schedules/{pipeline_schedule_id}/variables/{key}

Updates a variable for a pipeline schedule.

id
required
One of:
string

The ID or URL-encoded path of the project

Example
18
pipeline_schedule_id
required
integer

The pipeline schedule id

Example
13
key
required
string

The key of the variable

Example
NEW_VARIABLE
Media type application/json
object
value

The value of the variable

string
nullable
Example
new value
variable_type

The type of variable, must be one of env_var or file

string
nullable
Allowed values: env_var file

OK

Media type application/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 ..."
}

Bad request

Unauthorized

Forbidden

Not found