Skip to content

Select a winning variant for a completed experiment that had no winner. Once you select a non-control variant as the winning variant, it supersedes the control and becomes the only published story. To complete an experiment and pick the winning variant in a single call, use the complete an experiment with a winning variant endpoint instead.

PATCH
https://mapi.storyblok.com/v1/spaces/:space_id/experiments/:experiment_id/select_winner
  • :space_id required number

    Numeric ID of a space.

  • :experiment_id required number

    Numeric ID of the experiment.

  • variant_id required number

    Numeric ID of the winning variant.

  • experiment The Experiment Object

    The experiment object with winning_variant_id set.

curl "https://mapi.storyblok.com/v1/spaces/288868932106293/experiments/176070002766742/select_winner\
?variant_id=176070002791237" \
-X PATCH \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{}"

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.