Skip to content

Create a user-level variable

POST
/user/actions/variables/{variablename}
variablename
required
string

Name of the variable

Media type application/json
CreateVariableOption defines the properties of the variable to create.
object
value
required

Value of the variable to create. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained.

string
Example generated
{
"value": "example"
}

Response when creating a variable

Media type application/json

Response when creating a variable

Media type application/json

APIError is error format response

Media type application/json

APIError is an api error with a message

object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APIUnauthorizedError is a unauthorized error response

Media type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APIForbiddenError is a forbidden error response

Media type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}