provider Approvals POST /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests
@utdk/launchdarkly /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests
Create approval request for a flag
Create an approval request for a feature flag.
projectKey path required
The project key
string
featureFlagKey path required
The feature flag key
string
environmentKey path required
The environment key
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
postapprovalrequestforflag
POST/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests
Create an approval request for a feature flag.

Parameters

required

The project key

required

The feature flag key

required

The environment key

Input

Optional comment describing the approval request

required

A brief description of the changes you're requesting

required

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.

The ID of a scheduled change. Include this if your <code>instructions</code> include editing or deleting a scheduled change.

Configure credentials above to enable sending.

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

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.postapprovalrequestforflag()