---
title: "Update A/B test metadata or select winner"
method: PATCH
path: "/campaigns/ab-tests"
---

# Update A/B test metadata or select winner

`PATCH /campaigns/ab-tests`

## Request

- Base URL: `https://sendinel.ai/api/v1`
- URL: `https://sendinel.ai/api/v1/campaigns/ab-tests`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://sendinel.ai/oauth/authorize`, token URL `https://sendinel.ai/oauth/token`)

## Request body

- object
  - `test_id` string, uuid, required
  - `variant_label` string
  - `subject` string
  - `body_html` string
  - `action` string
  - `winner_variant_label` string
  - `send_to_remainder` boolean

## Response `200`

A/B test updated

---

[API](https://skmtc.dev/sendinel/apis/sendinel-api.md) · [All operations](https://skmtc.dev/sendinel/apis/sendinel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendinel/apis/sendinel-api/revisions/01f916b0c916?raw)
