Skip to main content
POST
Copy one arm of an A/B split into the other

Authorizations

Authorization
string
header
required

Your API token (af_…) as the Basic-auth username, with an empty password.

Path Parameters

campaignId
string
required

The campaign's id (24-character hex ObjectId), as returned by POST /business/campaigns or as the campaignId of a GET /business/campaigns row.

stepId
string
required

The sequence step's id, as returned by GET /business/campaigns/{campaignId}/steps (24-character hex ObjectId).

Body

application/json
fromBranchKey
enum<string>
required

The arm to copy from: a or b.

Available options:
a,
b
toBranchKey
enum<string>
required

The arm whose steps are replaced by the copies: the other arm.

Available options:
a,
b

Response

Success

stepId
string
required

The A/B split whose arm was copied.

copiedStepCount
integer
required

How many steps the target arm holds now, nested lanes included.