---
title: "Add Variant"
method: POST
path: "/api/v1/experiments/{experiment_id}/variants"
tags: ["Experiments"]
---

# Add Variant

`POST /api/v1/experiments/{experiment_id}/variants`

## Request

- Base URL: `https://api.adrex.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.adrex.ai/api/v1/experiments/{experiment_id}/variants`
- Auth: HTTP bearer

Add a variant to an experiment.

## Path parameters

- `experiment_id` integer, required

## Request body

- VariantCreate
  - `variant_label` string
  - `is_control` boolean
  - `name` string, required
  - `description` string, nullable
  - `variant_config` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/adrex/apis/adrex-ai.md) · [All operations](https://skmtc.dev/adrex/apis/adrex-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/adrex/apis/adrex-ai/revisions/4e6f0f0bc902?raw)
