Skip to main content

Update environment variable (POST)

POST 

/v2/acts/:actorId/versions/:versionNumber/env-vars/:envVarName

Updates Actor environment variable using values specified by a EnvVar object passed as JSON in the POST payload. This endpoint is an alias for the PUT update environment variable method and behaves identically.

Request

Path Parameters

    actorId string required

    Actor ID or a tilde-separated owner's username and Actor name.


    Example: janedoe~my-actor
    versionNumber string required

    Actor version.


    Example: 0.1
    envVarName string required

    The name of the environment variable


    Example: MY_ENV_VAR

Bodyrequired

  • name string required
    Example: MY_ENV_VAR
  • value string required
    Example: my-value
  • isSecret boolean | null nullable
    Example: false

Status 200

Response Headers
    {
    "data": {
    "name": "MY_ENV_VAR",
    "value": "my-value",
    "isSecret": false
    }
    }