Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

Path Parameters

id
string
required

The id of the requested resource

Body

application/json
results
enum<string>
required

The experiment conclusion status.

Available options:
dnf,
won,
lost,
inconclusive
enableTemporaryRollout
boolean

If true, include this stopped experiment in SDK payload and force the release variation (releasedVariationId) to all traffic.

releasedVariationId
string

Required if enableTemporaryRollout is true. Variation ID (e.g. var_abc123) to release to 100% of traffic eligible for this experiment.

winnerVariationId
string

Variation ID (e.g. var_abc123) of the winning variation. Used only as metadata. Required if results is 'won' and there are multiple test variations. Otherwise, defaults to the test variation when results is 'won' and to the baseline variation for other results.

analysis
string

Optional markdown summary displayed on the experiment results page.

reason
string

Optional reason for ending the phase stored on the latest phase metadata.

dateEnded
string

Optional ISO datetime for ending the latest phase. Defaults to the current date and time.

Response

Resource created

experiment
object
required