JavaScript
Admin
Update metrics
Update metrics by ID.
PATCH
JavaScript
Authorizations
Headers
The tenant identifier for multi-tenant organisations. Required when the organisation has multi-tenancy enabled. Pass your own internal customer ID for the tenant. Ignored for single-tenant organisations.
Body
application/json
Array of metrics to update. Each item must include an ID and may include any subset of mutable metric fields except key.
Required array length:
1 - 100 elementsThe UUID of the metric to update.
Example:
"550e8400-e29b-41d4-a716-446655440000"
The updated metric name.
Example:
"Invites Completed"
The updated metric unit type.
Available options:
number, currency Example:
"currency"
The updated units value. For unitType: currency, this must be a supported MetricCurrency code such as USD.
Example:
"USD"