Archive a metric
DELETE/projects/:project/metrics/:metric
Archives the metric. Nothing is removed: every test already judged on it keeps it, their reports read the same as before, and the name stays taken.
An archived metric is no longer returned by the list unless you ask for it, cannot be attached to a new test, and is no longer copied onto a test as a guardrail when that test starts. A test already running keeps the guardrail it was given on its first day.
Allowed however many tests read the metric. Send it twice and the second call does nothing and answers the same way. Set status to active with a PATCH to put it back on offer. Needs an editor or publisher key.
Request
Responses
- 204
- 401
- 403
- 404
- 429
The metric was archived. The response has no body.
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.
Too many calls. Wait for the number of seconds in Retry-After.
Response Headers
Seconds to wait before calling again.