Variables

Create or update a variable

Changed on

Creates a project-level environment variable and triggers asynchronous propagation to deployed functions and frontends in the project's configured regions.

post/projects/{id}/variables

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

Request body

CreateVariableRequest required
shared, boolean

Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.

name, string required

Project variable name. Function runtime names such as AWS_REGION are reserved and return 400; see the environment variables guide for the full list.

value, string required

Response

Variable created

Variable required
shared, boolean

Include this name in the project's shared function variables. Omission preserves existing membership; new variables default to true for legacy clients. Send false explicitly to create a non-shared variable.

frontend_shared, boolean

Whether this name is in the project's shared frontend-variable list.

id, string uuid required
project_id, string uuid required
name, string required
value, string required
status, 'provisioning' | 'active' | 'failed'

Latest project variable propagation status, when a sync has run.

current_sync_id, string uuid

Identifier of the latest variable propagation sync.

provisioning_started_at, string date-time

Timestamp when the current variable propagation phase started.

deploy_source, 'git' | 'cli' | 'web' | 'api' | 'system' | 'unknown'

What initiated the latest variable propagation sync, when one has run.

created_at, string date-time required
updated_at, string date-time required

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • info

      added the optional property frontend_shared to the response with the status

    • breaking

      added the new path request parameter id

    20 more changes in this revision