Apps

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 deployment; trigger a redeploy to make them live.

put/api/v1/apps/{appId}/env/{key}

Request

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

Path parameters

appIdstring required
keystring required

Request body

valuestring required
targetstring[]

Response

The variable was written; a redeploy is required.

requiresRedeploytrue required

Changes

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