Pipelines

Upsert an environment variable

Creates or updates one environment variable for the given environments (defaults to all when target is omitted); other environments keep their value. Changes apply on the next run; trigger a redeploy to start one.

put/api/v1/pipelines/{pipelineId}/env/{key}

Request

  • Base URL
    https://app.khotan.com
  • URL
    https://app.khotan.com/api/v1/pipelines/{pipelineId}/env/{key}
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Path parameters

pipelineIdstring required
keystring required

Request body

valuestring required
targetstring[]

Response

The variable was written.

appliedtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.