Update API Environment
unfour.api.update_environmentUpdates an API environment's name and variables via command bus. Sensitive values are masked; dev/test environments allow it, production is blocked.
Instructions
Updates an API environment name and variables through the command bus. Sensitive variable values are masked in the result. Dev/test allow it; prod blocks by workspace policy.
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": {
"environmentId": "<environmentId>",
"name": "<name>",
"variables": "<variables>"
},
"name": "unfour.api.update_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| variables | Yes | ||
| workspaceId | No | ||
| environmentId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||