Skip to main content
POST
/
api
/
v1
/
ab-tests
/
{abTestId}
/
restart
Restart A/B Test
curl --request POST \
  --url https://api.sequenzy.com/api/v1/ab-tests/{abTestId}/restart \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sourceVariantId": "<string>",
  "testType": "<string>",
  "winnerThreshold": 123,
  "variantCount": 123
}
'
{
  "success": true,
  "previousAbTestId": "ab_abc123",
  "sourceVariantId": "var_b",
  "abTest": {
    "id": "ab_new123",
    "status": "draft",
    "variants": [{ "id": "var_new_a", "label": "A" }]
  },
  "nodeConfig": {
    "abTestId": "ab_abc123",
    "winnerId": "var_winner",
    "pendingAbTestId": "ab_new123",
    "pendingExpectedVariantCount": 3
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt

Use this file to discover all available pages before exploring further.

Start a new draft A/B test for the same sequence node after a winner has been selected. The previous test and metrics stay intact, and the new test becomes active after its generated variants are ready.

Request

abTestId
string
required
A/B test ID to restart.
sourceVariantId
string
Variant ID to use as the new control email. Defaults to the selected winner.
testType
string
Test type: subject or content. Defaults to subject.
winnerThreshold
number
Subscribers before selecting a winner. Must be from 10 to 1000.
variantCount
number
Total variants including the control. Must be from 2 to 4.
curl -X POST "https://api.sequenzy.com/api/v1/ab-tests/ab_abc123/restart" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sourceVariantId": "var_b", "testType": "content", "variantCount": 3}'

Responses

{
  "success": true,
  "previousAbTestId": "ab_abc123",
  "sourceVariantId": "var_b",
  "abTest": {
    "id": "ab_new123",
    "status": "draft",
    "variants": [{ "id": "var_new_a", "label": "A" }]
  },
  "nodeConfig": {
    "abTestId": "ab_abc123",
    "winnerId": "var_winner",
    "pendingAbTestId": "ab_new123",
    "pendingExpectedVariantCount": 3
  }
}