Skip to content

Update an experiment’s display name, description, variants, or story associations. The name field is immutable after creation. You can’t update completed experiments.

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

    Numeric ID of a space.

  • :experiment_id required number

    Numeric ID of the experiment.

  • experiment required object

    The experiment object that contains the updated information.

curl "https://mapi.storyblok.com/v1/spaces/288868932106293/experiments/176070002766742" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"experiment\":{\"description\":\"Updated description\",\"display_name\":\"A simple test (updated)\",\"experiment_variants_attributes\":[{\"id\":1001,\"weight\":70},{\"id\":1002,\"weight\":40}]}}"

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.