A B Experiment Service
Create an A/B experiment
Creates a managed control/variant split across two to 20 deployments under the same endpoint. Exactly one member is the control, member percentages must add up to 100, and the split applies only to traffic that the endpoint would otherwise send to the control.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
projectId*string
Project identifier.
endpointId*string
Endpoint identifier.
Request Body
application/json
Configuration for a managed live-traffic split across deployments under one endpoint.
name*string
Human-readable A/B experiment name, unique within the endpoint.
description?string
Optional free-form description.
members*array<>
Two to 20 participating deployments with exactly one control. Integer traffic percentages across all members must add up to 100.
Response Body
application/json
application/json
curl -X POST "https://example.com/projects/string/endpoints/string/abExperiments" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "members": [ { "deploymentId": "string", "role": "AB_EXPERIMENT_MEMBER_ROLE_CONTROL", "percent": 0 } ] }'{ "id": "string", "projectId": "string", "endpointId": "string", "name": "string", "description": "string", "members": [ { "deploymentId": "string", "role": "AB_EXPERIMENT_MEMBER_ROLE_CONTROL", "percent": 0 } ], "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "etag": "string"}