Skip to main content
Sets an environment variable for the specified project. Creates the variable if it does not exist, or updates it if it does.

Authentication

Requires a valid Bearer token.

Path Parameters

id
string
required
Project ID (UUID).
key
string
required
Environment variable name.

Request Body

value
string
required
The value to set for the environment variable.
{
  "value": "postgresql://user:pass@host:5432/db"
}

Response

Returns 200 OK on success.

Errors

StatusDescription
400Bad Request — missing value
401Unauthorized — missing or invalid token
404Not Found — project does not exist or you do not have access