provider Approvals POST /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests-flag-copy
@utdk/launchdarkly /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests-flag-copy
Create approval request to copy flag configurations across environments
Create an approval request to copy a feature flag's configuration across environments.
projectKey path required
The project key
string
featureFlagKey path required
The feature flag key
string
environmentKey path required
The environment key for the target environment
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postflagcopyconfigapprovalrequest
POST/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests-flag-copy
Create an approval request to copy a feature flag's configuration across environments.

Parameters

required

The project key

required

The feature flag key

required

The environment key for the target environment

Input

Optional comment describing the approval request

required

A brief description of your changes

An array of member IDs. These members are notified to review the approval request.

An array of team keys. The members of these teams are notified to review the approval request.

required

Optional list of the flag changes to copy from the source environment to the target environment. You may include either <code>includedActions</code> or <code>excludedActions</code>, but not both. If neither are included, then all flag changes will be copied.

Optional list of the flag changes NOT to copy from the source environment to the target environment. You may include either <code>includedActions</code> or <code>excludedActions</code>, but not both. If neither are included, then all flag changes will be copied.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.postflagcopyconfigapprovalrequest()