v10

latestOpenAPI 3.0.1raw.githubusercontent.com2025-12-033223581.2 MB
Meter

Update Meter

Update the Meter with the given UUID.

Note: If you have created Custom Fields for a Meter, when you use this endpoint to update the Meter use the customFields parameter to preserve those Custom Fields. If you omit them from the update request, they will be lost.

put/organizations/{orgId}/meters/{id}

Path parameters

orgIdstring required

UUID of the organization. The Organization represents your company as a direct customer of the m3ter service.

idstring required

The UUID of the Meter to update.

Request body

versioninteger

The version number of the entity:

  • Create entity: Not valid for initial insertion of new entity - do not use for Create. On initial Create, version is set at 1 and listed in the response.
  • Update Entity: On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
customFieldsobject

User defined fields enabling you to attach custom data. The value for a custom field can be either a string or a number.

If customFields can also be defined for this entity at the Organizational level, customField values defined at individual level override values of customFields with the same name defined at Organization level.

See Working with Custom Fields in the m3ter documentation for more information.

productIdstring

UUID of the product the Meter belongs to. (Optional) - if left blank, the Meter is global.

groupIdstring

UUID of the group the Meter belongs to. (Optional).

namestring required

Descriptive name for the Meter.

codestring required

Code of the Meter - unique short code used to identify the Meter.

NOTE: Code has a maximum length of 80 characters and must not contain non-printable or whitespace characters (except space), and cannot start/end with whitespace.

Response

Return the updated Meter

idstring required

The UUID of the entity.

versioninteger

The version number:

  • Create: On initial Create to insert a new entity, the version is set at 1 in the response.
  • Update: On successful Update, the version is incremented by 1 in the response.
customFieldsobject

User defined fields enabling you to attach custom data. The value for a custom field can be either a string or a number.

If customFields can also be defined for this entity at the Organizational level,customField values defined at individual level override values of customFields with the same name defined at Organization level.

See Working with Custom Fields in the m3ter documentation for more information.

productIdstring

UUID of the Product the Meter belongs to. (Optional) - if blank, the Meter is global.

groupIdstring

UUID of the MeterGroup the Meter belongs to. (Optional).

namestring

Descriptive name for the Meter.

codestring

Code of the Meter - unique short code used to identify the Meter.

dtCreatedstring date-time

The DateTime when the meter was created (in ISO-8601 format).

dtLastModifiedstring date-time

The DateTime when the meter was last modified (in ISO-8601 format).

createdBystring

The id of the user who created this meter.

lastModifiedBystring

The id of the user who last modified this meter.