POST
/databases/{uuid}/envsCreate a database environment variable
Creates an environment variable for a database. Provide the variable's key and value and optionally set flags to control literal, multiline, or one-time display behaviour.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
uuidstringrequired
The UUID of the database to add the environment variable to.
Environment variable details to create.
is_literalbooleanoptional
The flag to indicate if the environment variable is a literal, nothing espaced.
is_multilinebooleanoptional
The flag to indicate if the environment variable is multiline.
is_shown_oncebooleanoptional
If true, the saved value is hidden in the UI and API responses. MCP never returns environment variable values.
keystringoptional
The key of the environment variable.
valuestringoptional
The value of the environment variable.
201Returns an object containing the UUID of the created environment variable.
uuidstringoptional
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. The uuid path parameter must identify the database.