Skip to main content
POST
/
api
/
v1
/
variables
Store or update a variable
curl --request POST \
  --url https://api.example.com/api/v1/variables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "value": "<string>",
  "description": "<string>"
}
'
{
  "name": "DEPLOY_ENV",
  "value": "production",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

Raw dev token passed as Authorization: Bearer fabro_dev_... when server.auth.methods includes dev-token.

Body

application/json

Request to store or update a variable.

name
string
required

Env-style variable name.

Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
value
string
required

Variable value. Empty values are allowed.

description
string

Optional operator-facing description of the variable.

Response

Variable stored

Non-sensitive variable available for run config interpolation.

name
string
required

Env-style variable name.

Pattern: ^[A-Za-z_][A-Za-z0-9_]*$
Example:

"DEPLOY_ENV"

value
string
required

Variable value.

Example:

"production"

created_at
string<date-time>
required

When the variable was first stored.

updated_at
string<date-time>
required

When the variable was last updated.

description
string

Optional operator-facing description of the variable.