Skip to main content
PATCH
JavaScript

Authorizations

X-API-KEY
string
header
required

Headers

Tenant-ID
string

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 elements
id
string<uuid>
required

The UUID of the metric to update.

Example:

"550e8400-e29b-41d4-a716-446655440000"

name
string

The updated metric name.

Example:

"Invites Completed"

unitType
enum<string>

The updated metric unit type.

Available options:
number,
currency
Example:

"currency"

units
string

The updated units value. For unitType: currency, this must be a supported MetricCurrency code such as USD.

Example:

"USD"

Response

Successful operation

Response containing updated metrics and any per-item issues identified by metric ID.

updated
CreatedMetric · object[]
required

Array of successfully updated metrics.

issues
AdminIssue · object[]
required

Array of issues encountered during metric update.