Choose what you allow. Your choice applies on every tracken.ee address and you can change it any time with “Cookie settings” in the footer.

Remember your cookie choice, language and theme. Without them the site doesn't work the way you chose.

A cookie with your choice (6 months); language and theme in browser storage.


The services below learn that you visited this site, whether you came from their ad and whether you then created a Tracken account. That shows us which ads work, and these companies may show you Tracken ads later. They may link the data to your account with them. For Meta, Tracken ID's server reports the new account and also sends a hash of your e-mail address, your IP address and browser details.

ServiceCookiesKept for up to
Meta (Facebook, Instagram)_fbp, _fbc90 days

Tracken's own visit counter uses no cookies, stores no IP addresses and shares nothing with anyone. Privacy policy

Skip to content
Beta
BetaThe Tracken Accounts API is in beta: it may still change before v1, and every change is announced in the changelog.

MeterTypeCreateRequest

Request

Sent in requests. Its values are closed: anything not listed is refused.

Attributes

2
dataMeterTypeInputrequired

A new meter type.

6 attributes of data
keystringrequired1–100 characters

Machine name, unique among the organization's active meter types.

namestringrequired1–500 characters

Name.

unitstring · nullableat most 50 characters

Unit of readings.

reading_selectionMeterReadingSelection

Which reading a billing period measures between; defaults to last_in_period.

One of last_in_period, nearest_to_boundary

tolerance_daysinteger0–14

For nearest_to_boundary, days on either side of a boundary; defaults to 5.

external_refstring · nullable1–200 characters

Your own id for the meter type, unique per organization; on_conflict resolves a create against it.

on_conflictOnConflictdefault "error"

What a create does when a record of the same resource already holds the sent external_ref. error: 409 EXTERNAL_REF_EXISTS with existing_id. return: 200 with the existing record, unchanged.

One of error, return, update

Details

update: apply the sent fields to it as a PATCH would and answer 200; refused like a PATCH when the record is no longer editable.

Used by