Apps

Bulk upsert environment variables

Creates or updates many environment variables for the given environments (defaults to all when target is omitted) in one request; other environments keep their value. Requires an API key whose role includes developer. Writes are not transactional: the response reports upsertedKeys and failedKeys, and earlier successful writes remain applied — retry the failed subset. Changes apply on the next deployment; trigger a redeploy to make them live.

post/api/v1/apps/{appId}/env

Request

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

Path parameters

appIdstring required

Request body

targetstring[]

Response

The partial result: which keys were upserted and which failed.

upsertedKeysstring[] required
failedKeysstring[] required
requiresRedeployboolean required

Changes

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