Replace goals
PUT/projects/:project/experiments/:experiment/goals
Sets the metric the test is decided on (primary) and the ones watched while it runs (secondary). The whole list is replaced: leaving out secondary means none. Guardrails are not changed here; the choices made in the dashboard stay as they are. Changing the deciding metric on a running test is allowed, as in the dashboard, and is written to the audit log. 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 metric is wrong, or there are more watched metrics than the plan allows.
Too many calls. Wait for the number of seconds in Retry-After.
Response Headers
Seconds to wait before calling again.