Zum Hauptinhalt springen
POST
cURL

Autorisierungen

Authorization
string
header
erforderlich

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

Body

The new MeasurementValue resource

quantity
any
erforderlich

The new value

Beispiel:

"10.239"

measuredAt
any
erforderlich

The date the value was measured. If none is given, the current date is used. A date-time with an offset or a zone (2026-11-01T10:00:00+01:00, 2026-11-01T09:00:00Z) is taken as given; a date-time without a zone (2026-11-01T10:00:00) is read in the organisation's time zone; a date alone (2026-11-01) is 00:00 in the organisation's time zone. Stored as an instant and returned as an ISO-8601 date-time with offset.

Beispiel:

"2021-01-01T00:00:00Z"

subscription
any

The subscription id, or the subscription number. Only necessary if you provide only the measurement code.

Beispiel:

"1QEHKTJY9097X91J78YRJEA9E8"

subscriptionItem
string | null

Either the subscription item or the measurement code must be provided.

Beispiel:

"1QEHKTJY9097X91J78YRJEA9E8"

measurementCode
string | null

Either the subscription item or the measurement code must be provided. If the subscription contains multiple items with the same measurement (code), all their values will be updated.

Beispiel:

"used_traffic"

Antwort

MeasurementValue resource created