Create a variable for a pipeline schedule
POST
/api/v4/projects/{id}/pipeline_schedules/{pipeline_schedule_id}/variables
Creates a variable for a pipeline schedule.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
key
required
The key of the variable
string
Example
NEW_VARIABLEvalue
required
The value of the variable
string
Example
new valuevariable_type
The type of variable, must be one of env_var or file. Defaults to env_var
string
Responses
Section titled “Responses”Created
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 ..."}Bad request
Unauthorized
Forbidden
Not found