cURL
weighted
curl --request POST \ --url https://app.localhost:3000/api/public/v1/plugins/v2/split \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "routeId": "route_abc123", "storeId": "store_abc123", "splitConfig": { "type": "weighted", "instances": [ { "instanceId": "inst_a", "weight": 50 }, { "instanceId": "inst_b", "weight": 50 } ], "stickyDuration": 604800 } } '
{ "message": "<string>", "code": "<string>", "issues": [ { "message": "<string>" } ] }
Configure A/B or geo-based split testing on an existing route.
Split types:
Sticky sessions: Visitors are pinned to the same variant for stickyDuration seconds (default 7 days).
stickyDuration
Authentication required: API key must be authorized for the account.
Enter your API key as: Bearer your-api-key
Bearer your-api-key
Show child attributes
Successful response