Create or update an environment
manage_environmentCreate a Featureflip environment or update its name, color, and sort order to organize projects and rollout contexts.
Instructions
Create an environment in a project, or change its name, color or sort order. action=create needs key + name; action=update needs environment and changes only the fields you pass. The key is immutable. Environments cannot be deleted from here. A new environment needs an SDK key before apps can use it (manage_sdk_key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | New environment key, required for create; immutable afterwards | |
| name | No | Display name; required for create | |
| color | No | Hex color shown in the dashboard, e.g. #22c55e | |
| action | Yes | create needs key + name; update needs environment | |
| project | Yes | Project key | |
| sortOrder | No | Position in environment lists, lowest first | |
| environment | No | Environment key to update; required for update |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||