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 Body required
Section titled “ Request Body required ” Media type application/json
object
key
required
The key of the variable
string
Example
NEW_VARIABLE value
required
The value of the variable
string
Example
new value variable_type
The type of variable, must be one of env_var or file. Defaults to env_var
string
Responses
Section titled “ Responses ”Created
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