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

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Body

The new MeasurementValue resource
quantity
any
required

The new value

measuredAt
any
required

The date the value was measured. If none is given, the current date is used

subscription
any

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

subscriptionItem
string | null

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

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.

Response

204
application/json
MeasurementValue resource created

The response is of type any.