update_application_env
Update an application's environment variables by replacing the full env or merging individual keys, with optional unsetting and build arg/secret changes; does not redeploy.
Instructions
Update an application's environment variables.
Pass env to replace the whole file, or variables to set keys and unset to remove keys. Those edits merge into the current file unless you also pass env. build_args and build_secrets are left unchanged unless you pass them. create_env_file controls whether Dokploy writes an env file into the build. This does not redeploy. To change one secret, pass only variables={KEY: value}; other keys are kept. Never pass the *** mask from get_application back as a value.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application_id": "<application_id>"
},
"name": "update_application_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| unset | No | ||
| variables | No | ||
| build_args | No | ||
| build_secrets | No | ||
| application_id | Yes | applicationId from list_applications or get_project. | |
| create_env_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||