Usage meters

Archive a meter

Archives the meter.

Authorization

bearer usage:write
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: usage:write

Path Parameters

meterId*string
Match^[A-Za-z0-9_-]{1,64}$
Length1 <= length <= 64

Header Parameters

Idempotency-Key?string

Names the act so a retry under it lands on the stored answer (idempotency-key).

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

POST
/v1/meters/{meterId}/archive
curl -X POST "https://example.com/v1/meters/string/archive" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "description": "string",  "eventName": "string",  "aggregation": {    "type": "count"  },  "unit": "string",  "filter": {    "conjunction": "and",    "clauses": [      {        "key": "string",        "operator": "equals",        "value": "string"      }    ]  },  "status": "active",  "archivedAt": "2019-08-24T14:15:22Z",  "hasEvents": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "liveMode": true}