Skip to main content
DELETE
/
api
/
v1
/
ab-tests
/
{abTestId}
/
variants
/
{variantId}
Delete A/B Test Variant
curl --request DELETE \
  --url https://api.sequenzy.com/api/v1/ab-tests/{abTestId}/variants/{variantId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "abTest": {
    "id": "ab_abc123",
    "campaignId": "camp_abc123",
    "status": "draft",
    "variants": [
      { "id": "var_a", "label": "A", "subject": "A quick update" },
      { "id": "var_b", "label": "B", "subject": "Alternative subject line" }
    ]
  }
}
Remove a variant from a draft campaign A/B test. Variant A is the control and cannot be deleted, and a test must keep at least 2 variants.

Request

abTestId
string
required
A/B test ID.
variantId
string
required
Variant ID to delete.
curl -X DELETE "https://api.sequenzy.com/api/v1/ab-tests/ab_abc123/variants/var_c" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

{
  "success": true,
  "abTest": {
    "id": "ab_abc123",
    "campaignId": "camp_abc123",
    "status": "draft",
    "variants": [
      { "id": "var_a", "label": "A", "subject": "A quick update" },
      { "id": "var_b", "label": "B", "subject": "Alternative subject line" }
    ]
  }
}