Skip to content

Update billable metric

PUT
/v1/billable_metrics/{metric_id}

Update a billable metric.

metric_id
required
Metric Id
string format: uuid
BillableMetricUpdate
object
name
Any of:
string
>= 1 characters <= 255 characters
description
Any of:
string
field_name
Any of:
string
<= 255 characters
recurring
Any of:
boolean
rounding_function
Any of:
string
Allowed values: round ceil floor
rounding_precision
Any of:
integer
<= 15
expression
Any of:
string

Successful Response

BillableMetricResponse
object
id
required
Id
string format: uuid
code
required
Code
string
name
required
Name
string
description
required
Any of:
string
aggregation_type
required
AggregationType
string
Allowed values: count sum max unique_count weighted_sum latest custom
field_name
required
Any of:
string
recurring
required
Recurring
boolean
rounding_function
required
Any of:
string
rounding_precision
required
Any of:
integer
expression
required
Any of:
string
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time

Unauthorized – invalid or missing API key

Billable metric not found

Validation error