PATCH
/databases/{uuid}/envs/bulkUpdate multiple database environment variables
Updates multiple environment variables for a database in one request. Provide the variables in the data array; each item can include a key, value, and configuration flags.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
uuidstringrequired
The UUID of the database whose environment variables to update.
Bulk environment variable update payload containing the required data array.
dataarray<object>required
An array of environment variable objects to update. Each object can include `key`, `value`, `is_literal`, `is_multiline`, and `is_shown_once`.
201Returns an array of the updated environment variable objects, including their keys, configuration flags, and timestamps.
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 database resource is not found.
messagestringoptional
422Returned when request body validation fails.
errorsobjectoptional
messagestringoptional
Error handling
A 400 is returned for an invalid token, a 401 when the request is unauthenticated, and a 404 when the database resource is not found. A 422 is returned when body validation fails; data is required. The uuid path parameter must identify the database.