Replace targeting
PUT/projects/:project/experiments/:experiment/targeting
Sets who the test is shown to: a saved audience by its id, or conditions written for this test, never both. A saved audience's conditions are copied onto the test, so editing the audience later never changes this test. Send neither to show the test to everybody. The pages the test runs on are not changed here. 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.
The audience or a condition is wrong, or saved audiences are not on the plan.
Too many calls. Wait for the number of seconds in Retry-After.
Response Headers
Seconds to wait before calling again.