Replace Variants
Path Parameters
projectId*string
experimentId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
variants*array<>
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/projects/string/experiments/string/variants" \ -H "Content-Type: application/json" \ -d '{ "variants": [ { "name": "string", "isControl": true, "weightPercentage": 0, "placements": [ { "paywallLocationId": "string", "paywallId": "string" } ] } ] }'{ "data": [ { "id": "string", "name": "string", "isControl": true, "weightPercentage": 0, "placements": [ { "paywallLocationId": "string", "paywallId": "string" } ] } ], "pageInfo": { "endCursor": "string", "hasNextPage": true }}{ "error": { "type": "invalid_request", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "unauthenticated", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "permission_denied", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "not_found", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "conflict", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "internal", "code": "string", "message": "string", "param": "string" }}