---
title: "Assign Variant"
method: POST
path: "/ab-testing/experiments/{experiment_id}/assign"
tags: ["ab-testing"]
---

# Assign Variant

`POST /ab-testing/experiments/{experiment_id}/assign`

## 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}/assign`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Assign a user to an experiment variant.

## Path parameters

- `experiment_id` string, uuid, required

## Query parameters

- `user_identifier` string, required

## Response `200`

Successful Response

- unknown

## 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)
