Replace variations
PUT/projects/:project/experiments/:experiment/variations
Replaces the whole list of variations. Send only what you are testing: the Original is added in front for you. A variation sent with its id keeps the visitors already assigned to it; one sent without an id is new, and one left out is removed. On an A/B test each variation carries its page changes; on a split URL test, its url; an A/A check takes only allocation. On a running or paused test, send every variation with its id, in the same order, with the same split: you can still rename them, move the baseline and change allocation, but adding, removing or reordering a variation, or changing the split, is refused with a 422, because it would move visitors already in the test. Needs an editor or publisher key.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 429
The test as it is now.
The key is missing, wrong, revoked or expired.
The key is a viewer (forbidden), the plan has no API access (feature_unavailable), or the account cannot make changes right now (account_read_only).
Nothing at this address, or it belongs to a project the key cannot reach.
The test is stopped or archived. Its report has been read and acted on, so it can no longer be changed.
A field is wrong. errors names each one by the path it was sent under.
Too many calls. Wait for the number of seconds in Retry-After.
Response Headers
Seconds to wait before calling again.