Hoppa till huvudinnehåll
POST
JavaScript

Auktoriseringar

Authorization
string
header
obligatorisk

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Kropp

application/json
aggregation
Meter Aggregation · object
obligatorisk

Aggregation configuration for the meter

event_name
string
obligatorisk

Event name to track

measurement_unit
string
obligatorisk

measurement unit

name
string
obligatorisk

Name of the meter

description
string | null

Optional description of the meter

filter
null | Meter Filter · object

Optional filter to apply to the meter

Exempel:

Svar

Meter created successfully

aggregation
Meter Aggregation · object
obligatorisk
business_id
string
obligatorisk
created_at
string<date-time>
obligatorisk
event_name
string
obligatorisk
id
string
obligatorisk
measurement_unit
string
obligatorisk
name
string
obligatorisk
updated_at
string<date-time>
obligatorisk
description
string | null
filter
null | Meter Filter · object

A filter structure that combines multiple conditions with logical conjunctions (AND/OR).

Supports up to 3 levels of nesting to create complex filter expressions. Each filter has a conjunction (and/or) and clauses that can be either direct conditions or nested filters.

Exempel:
Senast ändrad 1 april 2026