---
title: "Update Variant"
method: PUT
path: "/api/v1/experiments/{experiment_id}/variants/{variant_id}"
tags: ["Experiments"]
---

# Update Variant

`PUT /api/v1/experiments/{experiment_id}/variants/{variant_id}`

## 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/{variant_id}`
- Auth: HTTP bearer

Update a variant's config.

## Path parameters

- `experiment_id` integer, required
- `variant_id` integer, required

## Request body

- VariantUpdate
  - `name` string, nullable
  - `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)
