v1

latestOpenAPI 3.0.3MIT2026-07-1411163326.7 KB
Context

Add or update an environment variable

Create or update an environment variable within a context. Returns information about the environment variable, not including its value.

put/context/{context_id}/environment-variable/{env_var_name}

Path parameters

context_idstring uuid required

An opaque identifier of a context.

env_var_namestring required

The name of the environment variable.

Request body

valuestring required

The value of the environment variable

Example request

{
  "value": "some-secret-value"
}

Response

The new environment variable

OR

Example response

{
  "variable": "POSTGRES_USER",
  "created_at": "2015-09-21T17:29:21.042Z",
  "updated_at": "2015-09-21T17:29:21.042Z"
}