---
title: "Creates a new AB test"
method: POST
path: "/applications/{application}/abtests"
tags: ["abtests"]
---

# Creates a new AB test

`POST /applications/{application}/abtests`

Creates a new AB test under the specified application

## Request body

- CreateABTestType — AB test object. The size sum of control group and the testGroups should be exactly 100
  - `name` string, required — The unique name of the entity
  - `description` string — The user description for this AB test
  - `applicationId` string — System wide unique identifier of the entity
  - `seed` string — A seed for the AB test. AB tests with the same seeds and test sizes will result in groups with the exact same users.
  - `controlGroupSize` number, required — Percentage of the population that should belong to the control group
  - `testGroups` TestGroupType[], required — An array of the test groups for this AB test
    - `name` string — The name of the test group
    - `size` number — The size of the testgroup as a percentage (e.g. 20 is 20% of the population)

## Response `201`

The AB test was created successfully

- ABTestType — AB test object. The size sum of control group and the testGroups should be exactly 100
  - `id` string, required — System wide unique identifier of the entity
  - `name` string, required — The unique name of the entity
  - `description` string — The user description for this AB test
  - `applicationId` string — System wide unique identifier of the entity
  - `seed` string — A seed for the AB test. AB tests with the same seeds and test sizes will result in groups with the exact same users.
  - `controlGroupSize` number, required — Percentage of the population that should belong to the control group
  - `testGroups` TestGroupType[], required — An array of the test groups for this AB test
    - `name` string — The name of the test group
    - `size` number — The size of the testgroup as a percentage (e.g. 20 is 20% of the population)

## Other responses

- `400` — Malformed request
- `409` — Conflict
- `default` — Unexpected error

---

[API](https://skmtc.net/gameanalytics/apis/datatiger-management-api.md) · [All operations](https://skmtc.net/gameanalytics/apis/datatiger-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gameanalytics/datatiger-management-api/versions/20a4f732a0b7/schema)
