curl --request POST \
--url https://app.tagadapay.com/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).
Authentication required: API key must be authorized for the account.
curl --request POST \
--url https://app.tagadapay.com/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>"
}
]
}Enter your API key as: Bearer your-api-key
Successful response