Create experiment

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

Create an experiment.

To run this experiment, you’ll need to create an iteration and then update the experiment with the startIteration instruction.

To learn more, read Creating experiments.

Path parameters

projectKeystringRequired

The project key

environmentKeystringRequired

The environment key

Request

This endpoint expects an object.
namestringRequired

The experiment name

keystringRequired

The experiment key

iterationobjectRequired

Details on the construction of the initial iteration

descriptionstringOptional

The experiment description

maintainerIdstringOptional

The ID of the member who maintains this experiment

holdoutIdstringOptional

The ID of the holdout

Response

Experiment response

keystring

The experiment key

namestring

The experiment name

_maintainerIdstring

The ID of the member who maintains this experiment.

_creationDatelong

Timestamp of when the experiment was created

environmentKeystring
_idstringOptional

The experiment ID

descriptionstringOptional

The experiment description

archivedDatelongOptional

Timestamp of when the experiment was archived

holdoutIdstringOptional

The holdout ID

currentIterationobjectOptional

Details on the current iteration

draftIterationobjectOptional

Details on the current iteration. This iteration may be already started, or may still be a draft.

previousIterationslist of objectsOptional

Details on the previous iterations for this experiment.

Errors

Built with