Create environment
Approval settings
The
approvalSettings
key is only returned when the approvals feature is enabled.You cannot update approval settings when creating new environments. Update approval settings with the [https://launchdarkly.com/docs/api/environments/patch-environment).
Create a new environment in a specified project with a given name, key, swatch color, and default TTL.
Path parameters
Headers
Request
A human-friendly name for the new environment
A project-unique key for the new environment
The default time (in minutes) that the PHP SDK can cache feature flag rules locally
Ensures that one end user of the client-side SDK cannot inspect the variations for another end user
Response
The ID for the environment. Use this as the client-side ID for authorization in some client-side SDKs, and to associate LaunchDarkly environments with CDN integrations in edge SDKs.
A project-unique key for the new environment
A human-friendly name for the new environment
The SDK key for the environment. Use this for authorization in server-side SDKs.
The default time (in minutes) that the PHP SDK can cache feature flag rules locally
Ensures that one end user of the client-side SDK cannot inspect the variations for another end user