Meters
Update meter
Changed onpatch/meters/{id}
Request
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
Path parameters
idinteger required
ID of the meter
Query parameters
skipWebhookboolean
Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks
Request body
Example request
{
"assetId": 123,
"locationId": 123,
"description": "This meter is used for monitoring the temperature of the boiler",
"unit": "Celsius"
}Response
Successfully edited meter
Example response
{
"meter": {
"id": 123,
"assetId": 123,
"locationId": 123,
"creatorId": 123,
"updaterId": 123,
"uuid": "cd6fdffd-c9e2-4a40-9715-a182a6e5b557",
"description": "This meter is used for monitoring the temperature of the boiler",
"measurementType": "AUTOMATED_SENSOR",
"unit": "Celsius",
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z",
"deletedAt": "2022-01-01T00:00:00.000Z"
}
}Changes
- breaking
removed the media type
application/octet-streamfrom the request body - warning
added the new
AUTOMATED_SENSORenum value to the/response property for the response status - info
added the new optional
queryrequest parameterskipWebhook - info
added the optional property
/to the response with the status
- breaking