Chuyển đến nội dung chính
POST
JavaScript

Ủy quyền

Authorization
string
header
bắt buộc

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

Nội dung

application/json
aggregation
Meter Aggregation · object
bắt buộc

Aggregation configuration for the meter

event_name
string
bắt buộc

Event name to track

measurement_unit
string
bắt buộc

measurement unit

name
string
bắt buộc

Name of the meter

description
string | null

Optional description of the meter

filter
null | Meter Filter · object

Optional filter to apply to the meter

Ví dụ:

Phản hồi

Meter created successfully

aggregation
Meter Aggregation · object
bắt buộc
business_id
string
bắt buộc
created_at
string<date-time>
bắt buộc
event_name
string
bắt buộc
id
string
bắt buộc
measurement_unit
string
bắt buộc
name
string
bắt buộc
updated_at
string<date-time>
bắt buộc
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.

Ví dụ:
Lần sửa đổi cuối 1 tháng 4, 2026