provider Flag triggers POST /api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}
@utdk/launchdarkly /api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}
Create flag trigger
Create a new flag trigger.
projectKey path required
The project key
string
environmentKey path required
The environment 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.

createtriggerworkflow
POST/api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}
Create a new flag trigger.

Parameters

required

The project key

required

The environment key

required

The feature flag key

Input

Optional comment describing the trigger

The action to perform when triggering. This should be an array with a single object that looks like <code>{"kind": "flag_action"}</code>. Supported flag actions are <code>turnFlagOn</code> and <code>turnFlagOff</code>.

required

The unique identifier of the integration for your trigger. Use <code>generic-trigger</code> for integrations not explicitly supported.

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