---
title: "Select A/B test winner"
method: POST
path: "/campaigns/{id}/ab-test/winner"
tags: ["Campaigns"]
---

# Select A/B test winner

`POST /campaigns/{id}/ab-test/winner`

Manually pick a variant as the winner. The chosen variant is routed into the send pipeline immediately.

**Scopes:**
`campaigns.write`

## Path parameters

- `id` string, required

## Headers

- `Omnisend-Version` string, required

## Request body

- SelectABTestWinnerRequest — Winning variant selection for a manual A/B test winner pick
  - `variantID` string, required — ID of the variant to promote as the winner

## Response `204`

Winner selected

## Other responses

- `400` — Request contains invalid or missing fields
- `401` — Authentication is missing or invalid
- `403` — Insufficient permissions for this operation
- `404` — Campaign not found
- `409` — Campaign status does not allow winner selection
- `410` — API version has been retired
- `422` — Campaign is not an A/B parent
- `429` — Rate limit exceeded
- `500` — Unexpected error occurred

---

[API](https://skmtc.net/omnisend/apis/events-api.md) · [All operations](https://skmtc.net/omnisend/apis/events-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omnisend/events-api/revisions/50214fbc283f/schema)
