provider Flag links (beta) POST /api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}
@utdk/launchdarkly /api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}
Create flag link
Create a new flag link. Flag links let you reference external resources and associate them with your flags.
projectKey path required
The project key
string
featureFlagKey path required
The feature flag key
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.

createflaglink
POST/api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}
Create a new flag link. Flag links let you reference external resources and associate them with your flags.

Parameters

required

The project key

required

The feature flag key

Input

The flag link key

The integration key for an integration whose <code>manifest.json</code> includes the <code>flagLink</code> capability, if this is a flag link for an existing integration. Do not include for URL flag links.

The URL for the external resource you are linking the flag to

The title of the flag link

The description of the flag link

The metadata required by this integration in order to create a flag link, if this is a flag link for an existing integration. Defined in the integration's <code>manifest.json</code> file under <code>flagLink</code>.

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.createflaglink()