Creates a metric definition. Fields like uid, context_type, value_type, storage_unit, and is_snapshot are immutable after creation.
uid should be stable and machine-readable (for example, total_ar).name is the human-readable display label (for example, Total AR Outstanding).context_type, value_type, storage_unit, is_snapshot, and period_definition are treated as immutable after creation.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Machine-readable identifier (snake_case, unique)
"party_dso"
"Party DSO"
ORGANIZATION, PARTY, USER currency, percentage, days, count, ratio raw, cents Defines how metric_date should be interpreted for this metric.
as_of_date, trailing_30_days, calendar_month, month_to_date