PATCH/applications/{uuid}/envs/bulk

Update application environment variables in bulk

Updates multiple environment variables for an application in one request. Supply the required data array with the environment variable updates to apply. Values marked with is_shown_once are hidden in API responses.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
uuidstringrequired
The UUID of the application whose environment variables you want to update.

Bulk environment variable updates for the application.

dataarray<object>required
An array of environment variable objects. Each object can include a `key` and `value`, and flags for `is_literal`, `is_multiline`, `is_preview`, and `is_shown_once`; when `is_shown_once` is true, the saved value is hidden in API responses.

4 status codes
201Returns an array of updated environment variable objects, including their keys and configuration flags.
commentstringoptional
created_atstringoptional
idintegeroptional
is_buildtimebooleanoptional
is_literalbooleanoptional
is_multilinebooleanoptional
is_previewbooleanoptional
is_runtimebooleanoptional
is_sharedbooleanoptional
is_shown_oncebooleanoptional
If true, the saved value is hidden in the UI and API responses. MCP never returns environment variable values.
keystringoptional
real_valuestringoptional
resourceable_idintegeroptional
resourceable_typestringoptional
updated_atstringoptional
uuidstringoptional
valuestringoptional
versionstringoptional
400Returned when the token is invalid.
messagestringoptional
401Returned when the request is unauthenticated.
messagestringoptional
404Returned when the application resource is not found.
messagestringoptional

Error handling

A 400 is returned for an invalid token, a 401 when the request is unauthenticated, and a 404 when the application resource is not found. The uuid path parameter must identify the application. The request body must include data, an array of environment variable updates.