Create a billable metric
POST {{baseUrl}}/billable-metrics/create
Creates a new Billable Metric.
Request Body
{"name"=>"<string>", "aggregation_type"=>"LATEST", "event_type_filter"=>{"in_values"=>["<string>", "<string>"], "not_in_values"=>["<string>", "<string>"]}, "property_filters"=>[{"name"=>"<string>", "exists"=>"<boolean>", "in_values"=>["<string>", "<string>"], "not_in_values"=>["<string>", "<string>"]}, {"name"=>"<string>", "exists"=>"<boolean>", "in_values"=>["<string>", "<string>"], "not_in_values"=>["<string>", "<string>"]}], "aggregation_key"=>"<string>", "group_keys"=>[["<string>", "<string>"], ["<string>", "<string>"]], "custom_fields"=>{"esse_0"=>"<string>", "veniam8"=>"<string>", "culpa_cb8"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"id":"\u003cuuid\u003e"}}