Initialise a meter
Creates a meter with its fields and meter value calculations in one call. meter.meter_values and meter.meter_properties list every field to attach, by id or reference: an existing one, or one defined in meter_values or meter_properties. Everything is created in one go, or nothing is. The meter and every value, property and calculation the request defines must be new: an existing one is refused, naming it. A refusal names the offending field by its path, e.g. meter.meter_values[1].reference; an unknown or missing field is named by its name only. When calling with an API key, send an Idempotency-Key header to retry safely: a repeated request with the same key returns the original response and creates nothing new. Requires the METER.CREATE permission. Each list you send also requires its own create permission: meter_values requires METER_VALUE.CREATE; meter_properties requires METER_PROPERTY.CREATE; meter_value_calculations requires METER_VALUE_CALCULATION.CREATE.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Headers
Request
The meter to create; its reference must be new. meter.meter_values and meter.meter_properties list every field to attach, each by id or reference with required (default false): a field defined in this request, or an existing one.
The meter properties to create, each also listed in meter.meter_properties. Their references must be new: attach an existing property under meter.meter_properties instead. Each gets the status of the meter unless set.
The meter values to create, each also listed in meter.meter_values. Their references must be new: attach an existing value under meter.meter_values instead. Each gets the status of the meter unless set.
The meter value calculations to create, each over a field the meter lists; their references must be new.
Response
The meter values of the request: the new ones defined in meter_values in request order, then the existing ones attached via meter.meter_values.
The meter properties of the request: the new ones defined in meter_properties in request order, then the existing ones attached via meter.meter_properties.