A B Experiment Service
Update an A/B experiment
Updates an experiment's description or member traffic percentages. Use the experiment etag for optimistic concurrency.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
projectId*string
Project identifier.
endpointId*string
Endpoint identifier.
id*string
A/B experiment identifier.
Query Parameters
updateMask?string
Fields to update. If omitted, all mutable fields are overwritten.
Request Body
application/json
Mutable description and traffic allocation for an A/B experiment.
description?string
Updated free-form description.
members?array<>
Complete replacement member set. Requires two to 20 deployments, exactly one control, and percentages that add up to 100.
etag?string
Opaque version tag from a prior read for optimistic concurrency.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/projects/string/endpoints/string/abExperiments/string" \ -H "Content-Type: application/json" \ -d '{}'{ "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"}