Create a variable for a user
Create a user level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Either the UUID of the account surrounded by curly-braces, for example {account UUID}, OR an Atlassian Account ID.
Request Body
Section titled “ Request Body ”The variable to create.
object
The UUID identifying the variable.
The unique name of the variable.
The value of the variable. If the variable is secured, this will be empty.
If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.
Example generated
{ "type": "example", "uuid": "example", "key": "example", "value": "example", "secured": true}Responses
Section titled “ Responses ”The created variable.
object
The UUID identifying the variable.
The unique name of the variable.
The value of the variable. If the variable is secured, this will be empty.
If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.
Example generated
{ "type": "example", "uuid": "example", "key": "example", "value": "example", "secured": true}Headers
Section titled “ Headers ”The URL of the newly created pipeline variable.
The account does not exist.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}A variable with the provided key already exists.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}