Skip to main content
PATCH
Update A/B Test Variant
A/B testing requires at least the Email Pro plan.
Updates the variant B template of the A/B test. Only the fields you include in the request body are changed; variant A is never touched.

Request Body

Fields outside this list are rejected with 400. An empty message is also rejected with 400, except on LinkedIn invite steps where it means “invite without a note”. If the step does not run an A/B test, the endpoint returns 404.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

sequenceId
string
required

The unique identifier of the sequence

stepId
string
required

The unique identifier of the step

Body

application/json
subject
string

Variant B subject. An empty string removes it: variant B then replies in the thread of the previous email sent to the lead in this campaign, like variant A would.

message
string

Variant B body (HTML). An empty string is rejected, except on LinkedIn invite steps where it means "invite without a note"

altMessage
string

Variant B's LinkedIn note, same meaning as the step-level altMessage: the premium invitation note on a linkedinInvite step, the out-of-network note on a linkedinSend one. On a linkedinInvite step, over 300 characters is rejected with 400

altMessagePremium
string

Variant B's premium variant of the out-of-network note, on linkedinSend steps only: any other step type is rejected with 400. Over 300 characters is rejected with 400 too

cc
string[]
plainText
boolean

Response

Variant B updated

stepId
string
abTest
emailTemplateBId
string

Email template ID of variant B

subject
string

Variant B subject

message
string

Variant B body (HTML)

altMessage
string

Variant B's LinkedIn note, same meaning as the step-level altMessage: the premium invitation note on a linkedinInvite step, the out-of-network note on a linkedinSend one

altMessagePremium
string

Variant B's premium variant of the out-of-network note, on linkedinSend steps only

cc
string[]
plainText
boolean