Variables

Update a variable

Changed on

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

put/projects/{id}/variables/{name}

Request

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

Path parameters

id, string uuid required

Project ID

name, string required

Variable name. Function runtime names such as AWS_REGION are reserved and cannot be updated.

Request body

UpdateVariableRequest 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.

value, string required

Response

Variable updated

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 non-success response with the status

    • info

      added the optional property frontend_shared to the response with the status