Set API Environment Variable
unfour.api.set_environment_variableCreate or update an API environment variable by environment ID and key, with optional secret masking and metadata preservation.
Instructions
Creates or updates one API environment variable by environmentId and key through the command bus. Empty values are allowed. Omitted isSecret/description preserve existing metadata, and returned secrets are masked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | ||
| enabled | No | ||
| isSecret | No | ||
| description | No | ||
| workspaceId | No | ||
| environmentId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| created | Yes | ||
| variable | Yes |