Skip to main content
PUT
/
organizations
/
{orgId}
/
metergroups
/
{id}
Update MeterGroup
curl --request PUT \
  --url https://api.m3ter.com/organizations/{orgId}/metergroups/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "version": 123
}
'
{
  "id": "<string>",
  "version": 123,
  "name": "<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

id
string
required

The UUID of the MeterGroup to update.

Body

application/json
name
string
required
Required string length: 1 - 200
version
integer<int64>

Response

Return the updated MeterGroup

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.
name
string
dtCreated
string<date-time>

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

dtLastModified
string<date-time>

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

createdBy
string

The id of the user who created this meter group.

lastModifiedBy
string

The id of the user who last modified this meter group.