Skip to main content
POST
/
cms
/
v3
/
pages
/
site-pages
/
ab-test
/
end
End an active A/B test
curl --request POST \
  --url https://api.hubapi.com/cms/v3/pages/site-pages/ab-test/end \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "abTestId": "<string>",
  "winnerId": "<string>"
}
'
This response has no body data.

Supported products

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

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

Last modified on March 30, 2026