Base route: /api/environment
This API endpoint creates a new environment within a specific workspace. Environments are used to group infrastructure targets for deployments.
POST /api/environment
{
"workspaceId": "string",
"name": "string",
"sortOrder": 0,
"color": "string"
}
{
"environmentId": "string"
}