---
title: "Update A/B Test"
method: PUT
path: "/comparison/{id}?type=update"
---

# Update A/B Test

`PUT /comparison/{id}?type=update`

Update the name, description, or video list of an existing A/B test. Only the fields included in the request body will be updated.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `type` string, required

## Request body

- object
  - `name` string — New name for the A/B test
  - `description` string — New description for the A/B test
  - `video_ids` string[] — List of video UUIDs to include in the test

## Response `200`

A/B test updated successfully

- object

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/pandavideo/apis/api-v2.md) · [All operations](https://skmtc.net/pandavideo/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandavideo/api-v2/versions/4fbd3c623ca9/schema)
