Zum Hauptinhalt springen
POST
/
subscription-measurements
cURL
curl -X POST \
 /subscription-measurements \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer <token>" \
 --data '{
    "subscriptionItem": "1QEHKTJY9097X91J78YRJEA9E8",
    "measurementCode": "used_traffic"
}'

Autorisierungen

Authorization
string
header
erforderlich

Value for the Authorization header parameter.

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

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