Meters can be created, retrieved, updated, and deleted using the API, see API Documentation .
Examples
Below are a few examples of how this may look like.
Retrieving a list of meters:
GET /api/usage-metering/v1/meters
{}
Creating a meter:
POST /api/usage-metering/v1/meters
{
"domain": "string",
"externalRef": "string",
"meterTypeId": "string",
"userId": "string"
}
Deleting a meter:
DELETE /api/usage-metering/v1/meters{id}
{}
Retrieving one single meter:
GET /api/usage-metering/v1/meters{id}
{}
Updating a specific meter:
PATCH /api/usage-metering/v1/meters{id}
{
"resetAt": "string",
"value": 0
}