Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer YOUR_API_KEY.

Path Parameters

id
string
required

Agent id of the Primary Variant. Every split operation is addressed through the primary, not through a secondary variant.

Minimum string length: 1

Body

application/json

Replacement weights for every variant in the split.

Weights are replaced wholesale, not patched. Every variant in the split must appear exactly once, and the weights of the ones you keep live must total 100.

This is also how a variant is included in or excluded from the cycle. Send weight: 0 to exclude it; send any weight from 1 to include it again. Omitting a variant is an error rather than a shorthand for excluding it, so a caller that drops one by accident is refused instead of quietly taking an agent off the air.

revision
integer
required

The revision from the split you are changing.

Required range: x >= 1
Example:

4

variants
object[]
required
Minimum array length: 2
{key}
any

Response

The split after re-weighting.

success
boolean
required
splitTest
object
required