---
title: "Create new A/B Test"
method: POST
path: "/comparison"
---

# Create new A/B Test

`POST /comparison`

Creates a new A/B test with a name, description, and optional video IDs.

## Request body

- object
  - `name` string, required — Name of the A/B test
  - `description` string, required — Description of the A/B test
  - `video_ids` string[] — List of video IDs to include. Accepts empty array.

## Response `200`

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `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)
