Create holdout

POST
/api/v2/projects/:projectKey/environments/:environmentKey/holdouts

Create a new holdout in the specified project.

Path parameters

projectKeystringRequired

The project key

environmentKeystringRequired

The environment key

Request

This endpoint expects an object.
namestringOptional

A human-friendly name for the holdout

keystringOptional

A key that identifies the holdout

descriptionstringOptional

Description of the holdout

randomizationunitstringOptional

The chosen randomization unit for the holdout base experiment

attributeslist of stringsOptional

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

holdoutamountstringOptional

Audience allocation for the holdout

primarymetrickeystringOptional

The key of the primary metric for this holdout

metricslist of objectsOptional

Details on the metrics for this experiment

prerequisiteflagkeystringOptional

The key of the flag that the holdout is dependent on

maintainerIdstringOptional

Maintainer id

Response

Holdout response

_idstring
statusenum
Allowed values: createdenabledrunningended
holdoutAmountstring

The percentage of traffic allocated to this holdout.

createdAtlong
updatedAtlong
baseExperimentobject
descriptionstringOptional
experimentslist of objectsOptional

Errors

Built with