provider Holdouts (beta) POST /api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts
@utdk/launchdarkly /api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts
Create holdout
Create a new holdout in the specified project.
projectKey path required
The project key
string
environmentKey path required
The environment 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.

postholdout
POST/api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts
Create a new holdout in the specified project.

Parameters

required

The project key

required

The environment key

Input

A human-friendly name for the holdout

A key that identifies the holdout

Description of the holdout

The chosen randomization unit for the holdout base experiment

The attributes that the holdout iteration's results can be sliced by

Audience allocation for the holdout

The key of the primary metric for this holdout

Details on the metrics for this experiment

The key of the flag that the holdout is dependent on

Maintainer id

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