Skip to main content
POST
Copy an A/B variant

Authorizations

Authorization
string
header
required

An API key from the console, starting ob_live_, sent as Authorization: Bearer <key>.

Path Parameters

campaignId
string
required

The campaign's id.

Required string length: 24
Pattern: ^[0-9a-fA-F]+$
stepId
string
required

The step's id, from GET /v1/campaigns/{campaignId}/steps.

Required string length: 24
Pattern: ^[0-9a-fA-F]+$

Body

application/json
fromBranchKey
enum<string>
required

The variant to copy: a or b.

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

The other variant, whose steps the copies replace.

Available options:
a,
b

Response

The split, and how many steps were copied.

stepId
string
required

The A/B split step.

copiedStepCount
integer
required