---
title: "End an active A/B test"
method: POST
path: "/cms/v3/pages/landing-pages/ab-test/end"
tags: ["A/B tests"]
---

# End an active A/B test

`POST /cms/v3/pages/landing-pages/ab-test/end`

End an active A/B test and designate a winner.

## Request body

- AbTestEndRequestVNext — Request body object for ending A/B tests.
  - `abTestId` string, required — ID of the test to end.
  - `winnerId` string, required — ID of the object to designate as the test winner.

## Response `204`

No content

## Other responses

- `default` — An error occurred.

## Changes

- **2026-04-15** (v3) `df07dfb3375f` — 4 info
  - the endpoint scheme security `app_cookie` was removed from the API
  - the endpoint scheme security `hapikey` was removed from the API
  - the endpoint scheme security `internal_cookie` was removed from the API
  - the endpoint scheme security `shhkey` was removed from the API
- **2026-04-11** (v3) `4f45f5717791` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hubspot/apis/cms-pages/changes/cms/v3/pages/landing-pages/ab-test/end/post.md)

---

[API](https://skmtc.dev/hubspot/apis/cms-pages.md) · [All operations](https://skmtc.dev/hubspot/apis/cms-pages/llms.txt) · [OpenAPI document](https://skmtc.dev/hubspot/apis/cms-pages/revisions/676be239d45a?raw)
