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

# End an active A/B test

`POST /cms/pages/2026-03/landing-pages/ab-test/end`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/cms/pages/2026-03/landing-pages/ab-test/end`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `content`

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

## Request body

- AbTestEndRequestVNext
  - `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-11-03** (2026-03) `b4815293e3e1`: 1 breaking, 1 info
  - removed the media type `*/*` from the request body
  - added the media type `application/json` to the request body
- **2026-09-10** (2026-03) `1a3751fa5a49`: 2 info
  - the security scope `content` was added to the endpoint's security scheme `oauth2`
  - the security scope `content.landing_pages.write` was removed from the endpoint's security scheme `oauth2`
- **2026-09-09** (2026-03) `19f59a3ef408`: 2 info
  - the security scope `content.landing_pages.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `content` was removed from the endpoint's security scheme `oauth2`
- **2026-09-03** (2026-03) `f84cac8e5934`: 2 info
  - the security scope `content.landing_pages.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `content` was removed from the endpoint's security scheme `oauth2`
- **2026-09-03** (2026-03) `ca1e798d31cd`: 2 info
  - the security scope `content.landing_pages.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `content` was removed from the endpoint's security scheme `oauth2`

[Operation history](https://skmtc.dev/hubspot/apis/cms-pages/changes/cms/pages/2026-03/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/b4815293e3e1?raw)
