Skip to main content
DELETE
/
organizations
/
{orgId}
/
meters
/
{id}
Delete Meter
curl --request DELETE \
  --url https://api.m3ter.com/organizations/{orgId}/meters/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "version": 123,
  "customFields": {},
  "productId": "<string>",
  "groupId": "<string>",
  "name": "<string>",
  "code": "<string>",
  "dataFields": [
    {
      "category": "WHO",
      "code": "<string>",
      "name": "<string>",
      "unit": "<string>"
    }
  ],
  "derivedFields": [
    {
      "category": "WHO",
      "code": "<string>",
      "name": "<string>",
      "calculation": "<string>",
      "unit": "<string>"
    }
  ],
  "dtCreated": "2023-11-07T05:31:56Z",
  "dtLastModified": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedBy": "<string>"
}

Authorizations

Authorization
string
header
required

m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.

The authorizationCode flow controls access for human users via the m3ter Console application.

Path Parameters

orgId
string
required

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

id
string
required

The UUID of the Meter to delete.

Response

Return the deleted Meter

id
string
required

The UUID of the entity.

version
integer<int64>

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.
customFields
object

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.

productId
string

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

groupId
string

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

name
string

Descriptive name for the Meter.

code
string

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

dataFields
object[]

Used to submit categorized raw usage data values for ingest into the platform - either numeric quantitative values or non-numeric data values. At least one required per Meter; maximum 15 per Meter.

derivedFields
object[]

Used to submit usage data values for ingest into the platform that are the result of a calculation performed on dataFields, customFields, or system Timestamp fields. Raw usage data is not submitted using derivedFields. Maximum 15 per Meter. (Optional).

dtCreated
string<date-time>

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

dtLastModified
string<date-time>

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

createdBy
string

The id of the user who created this meter.

lastModifiedBy
string

The id of the user who last modified this meter.