cURL
curl --request POST \ --url http://localhost:8081/v1/routing/ab-tests \ --header 'Content-Type: application/json' \ --header 'X-Org-Id: <x-org-id>' \ --header 'X-Reevit-Key: <api-key>' \ --data ' { "name": "<string>", "variants": [ { "name": "<string>", "routing_rule_id": "<string>", "weight": 123 } ], "description": "<string>", "traffic_percentage": 123, "target_currencies": [ "<string>" ], "target_countries": [ "<string>" ], "target_methods": [ "<string>" ], "start_at": "2023-11-07T05:31:56Z", "end_at": "2023-11-07T05:31:56Z" } '
{ "id": "<string>", "org_id": "<string>", "mode": "<string>", "name": "<string>", "description": "<string>", "status": "draft", "variants": [ { "name": "<string>", "routing_rule_id": "<string>", "weight": 123 } ], "traffic_percentage": 123, "target_currencies": [ "<string>" ], "target_countries": [ "<string>" ], "target_methods": [ "<string>" ], "start_at": "2023-11-07T05:31:56Z", "end_at": "2023-11-07T05:31:56Z", "total_transactions": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
API key for server-to-server authentication
Organization identifier for multi-tenancy
Idempotency key for safe retries
Show child attributes
Created
draft
running
paused
completed