Update Meter
Updates a meter’s descriptive fields, default price or status; archives a meter with status INACTIVE.
403 PRODUCT_NOT_ENABLED.name, description, unit_label, plural_unit_label, default_price, status. event_name and aggregation cannot be changed — if you include them they are silently ignored and the response shows the original values.
Refer to Meter Error Codes for the possible error outcomes.Authorizations
Headers
The account_id found in your Yuno Dashboard (UUID). Required — omitting it returns 400 BAD_REQUEST ("Invalid x-account-code header.").
Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is retried due to network issues or timeouts. Optional, as on the rest of the Yuno API.
Path Parameters
The unique identifier of the meter.
Body
The meter display name (MAX 255; MIN 3).
What the meter counts and how.
Singular unit label.
Plural unit label.
Set to INACTIVE to archive the meter, ACTIVE to reactivate it. There is no delete. Archiving does not detach the meter from plans it is already attached to, and its event_name remains reserved.
ACTIVE, INACTIVE Response
200
The unique identifier of the meter.
The unique identifier of the account that owns the meter.
SUM, COUNT, LAST ACTIVE, INACTIVE "ACTIVE"
Set by Yuno on creation.
Set by Yuno on every update.