---
title: "Update Experiment"
method: PUT
path: "/ab-testing/experiments/{experiment_id}"
tags: ["ab-testing"]
---

# Update Experiment

`PUT /ab-testing/experiments/{experiment_id}`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/ab-testing/experiments/{experiment_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Update an experiment.

## Path parameters

- `experiment_id` string, uuid, required

## Request body

- ExperimentUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `status` string, nullable
  - `variants` VariantConfig[], nullable
    - `id` string, required
    - `name` string, required
    - `weight` integer
    - `config` object
  - `traffic_percentage` integer, nullable
  - `success_metric` string, nullable

## Response `200`

Successful Response

- ExperimentResponse
  - `id` string, required
  - `space_id` string, required
  - `agent_id` string, nullable, required
  - `name` string, required
  - `description` string, nullable, required
  - `status` string, required
  - `variants` object[], required
  - `traffic_percentage` integer, required
  - `success_metric` string, required
  - `started_at` string, nullable, required
  - `ended_at` string, nullable, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/meganova/apis/meganova-api.md) - [All operations](https://skmtc.dev/meganova/apis/meganova-api/llms.txt) - [OpenAPI document](https://skmtc.dev/meganova/apis/meganova-api/revisions/c683584f6060?raw)
