PUT
/
metrics
/
{metric_id}

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Path Parameters

metric_id
string
required

Body

application/json
metadata
object | null

User-specified key/value pairs for the resource. Individual keys can be removed by setting the value to null, and the entire metadata mapping can be cleared by setting metadata to null.

Response

200 - application/json

The Metric resource represents a calculation of a quantity based on events. Metrics are defined by the query that transforms raw usage events into meaningful values for your customers.

description
string | null
required
id
string
required
item
object
required

The Item resource represents a sellable product or good. Items are associated with all line items, billable metrics, and prices and are used for defining external sync behavior for invoices and tax calculation purposes.

metadata
object
required

User specified key-value pairs for the resource. If not present, this defaults to an empty dictionary. Individual keys can be removed by setting the value to null, and the entire metadata mapping can be cleared by setting metadata to null.

name
string
required
status
enum<string>
required
Available options:
active,
draft,
archived