The LaunchDarkly actions let you manage feature flags directly from your workflows. You can list projects and environments, create and modify flags, toggle flags on or off, manage percentage rollouts, and control which contexts receive a given flag variation.
All actions authenticate with a LaunchDarkly personal or service access token sent as the raw Authorization header — no Bearer prefix. Each action accepts an optional baseUrl input so you can target the EU (https://app.eu.launchdarkly.com) or federal (https://app.launchdarkly.us) instance instead of the default US instance.
Conseil
Selector expressions for LaunchDarkly actions must parse responseBody as JSON. Start every selector expression with .responseBody | fromjson, for example .responseBody | fromjson.key.
Prerequisites
- A LaunchDarkly account with at least one project.
- A personal or service access token with the roles required for the actions you plan to use. See LaunchDarkly API access tokens.
- Store the token as a secret in the New Relic Secrets Service and reference it using
${{ :secrets:<keyName> }}.
Action reference
| Action | What it does | Key required inputs |
|---|---|---|
launchDarkly.project.list | List all projects in the account | token |
launchDarkly.environment.list | List environments in a project | token, projectKey |
launchDarkly.flag.create | Create a flag — returns variation IDs needed by targeting actions | token, projectKey, name, key |
launchDarkly.flag.get | Get flag configuration | token, projectKey, featureFlagName |
launchDarkly.flag.list | List flags in a project | token, projectKey |
launchDarkly.flag.toggle | Turn a flag on or off in one environment | token, projectKey, env, featureFlagName, enabled |
launchDarkly.flag.archive | Soft-delete a flag (reversible) | token, projectKey, featureFlagName |
launchDarkly.flag.copy | Copy flag settings between environments (Enterprise plan only) | token, projectKey, featureFlagName, sourceEnvironmentKey, targetEnvironmentKey |
launchDarkly.flagStatus.get | Get flag lifecycle status in one environment | token, projectKey, env, featureFlagName |
launchDarkly.flagStatus.list | List statuses for all flags in an environment | token, projectKey, env |
launchDarkly.rollout.get | Get current rollout percentages | token, projectKey, env, featureFlagName |
launchDarkly.rollout.update | Set rollout percentages | token, projectKey, env, featureFlagName, rolloutWeights |
launchDarkly.contextTarget.add | Pin specific contexts to a variation | token, projectKey, env, featureFlagName, variationId, contextKeys |
launchDarkly.contextTarget.remove | Remove contexts from individual targeting | token, projectKey, env, featureFlagName, variationId, contextKeys |
launchDarkly.contextTargetExpiry.add | Schedule a context to be removed from targeting at a given time | token, projectKey, env, featureFlagName, contextKey, variationId, expirationDate |
launchDarkly.contextTargetExpiry.update | Change the time at which a scheduled expiry fires | token, projectKey, env, featureFlagName, contextKey, variationId, expirationDate |
launchDarkly.contextTargetExpiry.remove | Cancel a scheduled expiry | token, projectKey, env, featureFlagName, contextKey, variationId |
Common patterns
Disable a flag during an incident
Use launchDarkly.flag.toggle with enabled: false. This is a single-step operation — no other actions are needed.
Gradually roll out a flag and promote to 100%
- Create the flag with
launchDarkly.flag.create— capture variation IDs from the response. - Set an initial low rollout with
launchDarkly.rollout.updateusing the captured variation IDs. - Monitor with
launchDarkly.flagStatus.getuntil the flag reachesactivestatus. - Promote to 100% with another
launchDarkly.rollout.update. - Archive with
launchDarkly.flag.archivewhen the rollout is complete.
Beta-test with named users and auto-expire access
- Add specific users with
launchDarkly.contextTarget.add— this action accepts a list of context keys. - Schedule automatic removal for each user with
launchDarkly.contextTargetExpiry.add— this action accepts a singlecontextKey, so you need one step per user. - To extend access, use
launchDarkly.contextTargetExpiry.update. - To cancel the scheduled removal entirely, use
launchDarkly.contextTargetExpiry.remove.
List projects
Action identifier: launchDarkly.project.list
Lists the projects in the LaunchDarkly account.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token sent as the |
| String | Optional. LaunchDarkly host. Defaults to |
| Integer | Optional. Maximum number of projects to return. For example, |
| Integer | Optional. Number of items to skip for pagination. For example, |
| String | Optional. LaunchDarkly filter expression to narrow results. For example, |
| String | Optional. Field to sort by. Prefix with |
| List | Optional. JQ selectors to extract fields from the response. |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: listLaunchDarklyProjectsdescription: List all projects in the LaunchDarkly accountsteps: - name: listProjects type: action action: launchDarkly.project.list version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} selectors: - name: projectKeys expression: "[.responseBody | fromjson.items[].key]" - name: totalCount expression: ".responseBody | fromjson.totalCount" next: endList environments
Action identifier: launchDarkly.environment.list
Lists the environments in a LaunchDarkly project.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| Integer | Optional. Maximum number of environments to return. |
| Integer | Optional. Number of items to skip for pagination. |
| String | Optional. LaunchDarkly filter expression. For example, |
| String | Optional. Field to sort by. Prefix with |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: listLaunchDarklyEnvironmentsdescription: List all environments in a LaunchDarkly projectsteps: - name: listEnvironments type: action action: launchDarkly.environment.list version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project selectors: - name: environmentKeys expression: "[.responseBody | fromjson.items[].key]" next: endCreate a flag
Action identifier: launchDarkly.flag.create
Creates a feature flag in a LaunchDarkly project. Defaults to a boolean flag when no variations are provided. Use the variation IDs from the response in subsequent steps that target specific variations.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. Human-readable flag name. For example, |
| String | Required. Unique flag key used to reference the flag in code and in other actions. For example, |
| String | Optional. Flag description. For example, |
| List | Optional. Tags to attach. For example, |
| Boolean | Optional. Whether the flag is temporary. LaunchDarkly defaults to |
| List | Optional. Flag variations, each with a |
| Map | Optional. Indexes of the default on and off variations. Both |
| Map | Optional. Whether to expose the flag to client-side SDKs. Both |
| String | Optional. Member ID of the flag maintainer. |
| Map | Optional. Custom properties to attach to the flag. For example, |
| String | Optional. Key of an existing flag to clone from, including its targeting in every environment. |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: createFeatureFlagdescription: Create a permanent boolean feature flag and capture its variation IDssteps: - name: createFlag type: action action: launchDarkly.flag.create version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project name: New checkout flow key: new-checkout temporary: false selectors: - name: flagKey expression: ".responseBody | fromjson.key" - name: trueVariationId expression: ".responseBody | fromjson.variations[0]._id" - name: falseVariationId expression: ".responseBody | fromjson.variations[1]._id" next: endImportant
flag.create returns a variation ID for each variation in responseBody.variations[]._id. Capture these IDs with selectors — you need them in every subsequent step that targets a specific variation: flag.toggle, rollout.update, contextTarget.add, contextTarget.remove, and all three contextTargetExpiry actions.
Get a flag
Action identifier: launchDarkly.flag.get
Gets the configuration of a feature flag, optionally scoped to one environment.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The feature flag key. For example, |
| String | Optional. Limit the response to this environment. Omit to include all environments. For example, |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: getFeatureFlagdescription: Get the configuration of a feature flag for one environmentsteps: - name: getFlag type: action action: launchDarkly.flag.get version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project featureFlagName: new-checkout env: production selectors: - name: flagName expression: ".responseBody | fromjson.name" - name: on expression: ".responseBody | fromjson.environments.production.on" next: endList flags
Action identifier: launchDarkly.flag.list
Lists the feature flags in a LaunchDarkly project.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| Integer | Optional. Maximum number of flags to return. |
| Integer | Optional. Number of items to skip for pagination. |
| String | Optional. LaunchDarkly filter expression. For example, |
| String | Optional. Field to sort by. Prefix with |
| String | Optional. Include flag settings for this environment in the response. |
| String | Optional. Return only flags with this tag. For example, |
| Boolean | Optional. Return archived flags instead of active ones. Defaults to |
| Boolean | Optional. Return a summary of each flag without full per-environment configuration. For example, |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: listFeatureFlagsdescription: List all flags with a given tagsteps: - name: listFlags type: action action: launchDarkly.flag.list version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project tag: release selectors: - name: flagKeys expression: "[.responseBody | fromjson.items[].key]" - name: totalCount expression: ".responseBody | fromjson.totalCount" next: endToggle a flag
Action identifier: launchDarkly.flag.toggle
Turns a feature flag on or off in one environment.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The environment key. For example, |
| String | Required. The feature flag key. For example, |
| Boolean | Required. |
| String | Optional. Comment recorded in the flag audit log. For example, |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: enableFeatureFlagdescription: Turn a feature flag on in productionsteps: - name: toggleFlag type: action action: launchDarkly.flag.toggle version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout enabled: true comment: Enabled by incident workflow next: endArchive a flag
Action identifier: launchDarkly.flag.archive
Archives a feature flag in a LaunchDarkly project. Archiving is a reversible soft-disable: the flag is hidden from the flag list and can be restored in LaunchDarkly. The flag key stays reserved until the flag is restored, so a workflow cannot recreate a flag under the same key while it is archived.
Important
There is no delete action for LaunchDarkly flags. Permanent deletion cannot be rolled back if a workflow runs by mistake. Use launchDarkly.flag.archive instead — it can be undone in LaunchDarkly.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The feature flag key. For example, |
| String | Optional. Comment recorded in the flag audit log. For example, |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: archiveFeatureFlagdescription: Archive a feature flag after a successful rolloutsteps: - name: archiveFlag type: action action: launchDarkly.flag.archive version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project featureFlagName: new-checkout comment: Archived by cleanup workflow selectors: - name: archived expression: ".responseBody | fromjson.archived" next: endCopy flag settings
Action identifier: launchDarkly.flag.copy
Copies a feature flag's settings from one environment to another within the same project.
Important
Copying flag settings is a LaunchDarkly Enterprise plan feature. On any other plan, LaunchDarkly rejects the request and the action fails.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The feature flag key. For example, |
| String | Required. Environment to copy settings from. For example, |
| String | Required. Environment to copy settings to. For example, |
| Integer | Optional. Expected version of the source environment flag. The copy fails if the source has changed since. For example, |
| Integer | Optional. Expected version of the target environment flag. The copy fails if the target has changed since. For example, |
| List | Optional. Copy only these parts of the flag (for example, |
| List | Optional. Copy everything except these parts. Cannot be combined with |
| String | Optional. Comment recorded in the flag audit log. |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: copyFlagToProductiondescription: Copy flag settings from staging to productionsteps: - name: copyFlag type: action action: launchDarkly.flag.copy version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project featureFlagName: new-checkout sourceEnvironmentKey: staging targetEnvironmentKey: production comment: Promoted by release workflow next: endGet flag status
Action identifier: launchDarkly.flagStatus.get
Gets the status of a feature flag in one environment. Possible statuses are new, active, inactive, and launched.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The environment key. For example, |
| String | Required. The feature flag key. For example, |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: checkFlagStatusdescription: Get the status of a feature flag in productionsteps: - name: getFlagStatus type: action action: launchDarkly.flagStatus.get version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout selectors: - name: status expression: ".responseBody | fromjson.name" next: endList flag statuses
Action identifier: launchDarkly.flagStatus.list
Lists the status of every feature flag in one environment.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The environment key. For example, |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: listFlagStatusesdescription: List the status of every flag in an environmentsteps: - name: listStatuses type: action action: launchDarkly.flagStatus.list version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production selectors: - name: statuses expression: ".responseBody | fromjson.items" next: endGet rollout
Action identifier: launchDarkly.rollout.get
Gets a feature flag's default (fallthrough) rule for one environment, including its percentage rollout. The rollout is in environments.<env>.fallthrough of the response body.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The environment key. For example, |
| String | Required. The feature flag key. For example, |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: getRolloutConfigdescription: Get the current rollout percentage for a flagsteps: - name: getRollout type: action action: launchDarkly.rollout.get version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout selectors: - name: fallthrough expression: ".responseBody | fromjson.environments.production.fallthrough" next: endUpdate rollout
Action identifier: launchDarkly.rollout.update
Updates the percentage rollout of a feature flag's fallthrough rule in one environment. Rollout weights are in thousandths of a percent and must sum to 100000.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The environment key. For example, |
| String | Required. The feature flag key. For example, |
| Map | Required. Map of variation ID to weight in thousandths of a percent. Weights must sum to 100000 (representing 100%). Common conversions: 10% = 10000, 25% = 25000, 50% = 50000, 100% = 100000. Use variation IDs from a prior |
| String | Optional. Context kind to bucket by. For example, |
| String | Optional. Context attribute to bucket by. For example, |
| String | Optional. Comment recorded in the flag audit log. |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: setTenPercentRolloutdescription: Ramp a flag to 10% in production using variation IDs from a prior stepsteps: - name: updateRollout type: action action: launchDarkly.rollout.update version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout rolloutWeights: '${{ {(.steps.createFlag.outputs.trueVariationId): 10000, (.steps.createFlag.outputs.falseVariationId): 90000} }}' comment: 10% rollout from release workflow next: endAdd context targets
Action identifier: launchDarkly.contextTarget.add
Adds context keys to the individual targets of a feature flag so they always receive a given variation, regardless of rollout percentage.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. For example, |
| String | Required. The environment key. For example, |
| String | Required. The feature flag key. For example, |
| String | Required. The variation ID (the |
| List | Required. Context keys to add. For example, |
| String | Optional. Context kind the keys belong to. Defaults to |
| String | Optional. Comment recorded in the flag audit log. |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: addBetaUsersToFlagdescription: Add beta users to a feature flag's individual targetssteps: - name: addContextTargets type: action action: launchDarkly.contextTarget.add version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout variationId: ${{ .steps.createFlag.outputs.trueVariationId }} contextKeys: - beta-user-1 - beta-user-2 next: endRemove context targets
Action identifier: launchDarkly.contextTarget.remove
Removes context keys from the individual targets of a feature flag.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. |
| String | Required. The environment key. For example, |
| String | Required. The feature flag key. |
| String | Required. The variation ID. For example, |
| List | Required. Context keys to remove. For example, |
| String | Optional. Context kind the keys belong to. Defaults to |
| String | Optional. Comment recorded in the flag audit log. |
| List | Optional. JQ selectors to extract fields from the response. |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: removeBetaUsersFromFlagdescription: Remove beta users from a feature flag's individual targetssteps: - name: removeContextTargets type: action action: launchDarkly.contextTarget.remove version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout variationId: ${{ .steps.createFlag.outputs.trueVariationId }} contextKeys: - beta-user-1 - beta-user-2 next: endSchedule a context target expiry
Action identifier: launchDarkly.contextTargetExpiry.add
Schedules a context target to be automatically removed from a feature flag's individual targeting at a given time.
Prudence
The response body identifies the context with either a userKey field or a contextKey/contextKind pair depending on your LaunchDarkly instance. Write selectors against the field your instance returns — do not assume one or the other.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. |
| String | Required. The environment key. For example, |
| String | Required. The feature flag key. |
| String | Required. The key of the context whose targeting expires. For example, |
| String | Optional. The kind of context. Defaults to |
| String | Required. The variation ID. For example, |
| Integer | Required. Epoch time in milliseconds at which the target is removed. For example, |
| String | Optional. Comment recorded in the flag audit log. |
| List | Optional. JQ selectors to extract fields from the response. For example, |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: scheduleContextTargetExpirydescription: Schedule a beta user to be removed from flag targeting in 24 hourssteps: - name: addExpiry type: action action: launchDarkly.contextTargetExpiry.add version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout contextKey: beta-user-1 variationId: ${{ .steps.createFlag.outputs.trueVariationId }} expirationDate: ${{ ((now * 1000) | floor) + 86400000 }} selectors: - name: expiringTargets expression: ".responseBody | fromjson.items" next: endUpdate a context target expiry
Action identifier: launchDarkly.contextTargetExpiry.update
Changes the time at which a scheduled context target is removed from a feature flag.
Prudence
The response body identifies the context with either a userKey field or a contextKey/contextKind pair depending on your LaunchDarkly instance. Write selectors against the field your instance returns — do not assume one or the other.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. |
| String | Required. The environment key. For example, |
| String | Required. The feature flag key. |
| String | Required. The key of the context whose targeting expires. |
| String | Optional. The kind of context. Defaults to |
| String | Required. The variation ID. |
| Integer | Required. New epoch time in milliseconds at which the target is removed. |
| Integer | Optional. Current |
| String | Optional. Comment recorded in the flag audit log. |
| List | Optional. JQ selectors to extract fields from the response. |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: extendContextTargetExpirydescription: Extend a scheduled context target expiry to 48 hours from nowsteps: - name: updateExpiry type: action action: launchDarkly.contextTargetExpiry.update version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout contextKey: beta-user-1 variationId: ${{ .steps.createFlag.outputs.trueVariationId }} expirationDate: ${{ ((now * 1000) | floor) + 172800000 }} next: endRemove a context target expiry
Action identifier: launchDarkly.contextTargetExpiry.remove
Removes the scheduled expiry from a context target so it stays on the feature flag indefinitely.
Prudence
The response body identifies the context with either a userKey field or a contextKey/contextKind pair depending on your LaunchDarkly instance. Write selectors against the field your instance returns — do not assume one or the other.
Input | Type | Description |
|---|---|---|
| String | Required. LaunchDarkly access token. Must be passed as a secret. |
| String | Optional. LaunchDarkly host. Defaults to |
| String | Required. The project key. |
| String | Required. The environment key. |
| String | Required. The feature flag key. |
| String | Required. The key of the context whose expiry to remove. |
| String | Optional. The kind of context. Defaults to |
| String | Required. The variation ID. |
| String | Optional. Comment recorded in the flag audit log. |
| List | Optional. JQ selectors to extract fields from the response. |
Output | Type | Description |
|---|---|---|
| Boolean |
|
| Object | Present when |
| String | Error detail if the call failed. |
name: cancelContextTargetExpirydescription: Cancel a scheduled context target expiry so the user stays targetedsteps: - name: removeExpiry type: action action: launchDarkly.contextTargetExpiry.remove version: '1' inputs: token: ${{ :secrets:launchDarklyApiToken }} projectKey: my-project env: production featureFlagName: new-checkout contextKey: beta-user-1 variationId: ${{ .steps.createFlag.outputs.trueVariationId }} next: end