Meters
Create new meter
Changed onEndpoint used to create a new meter. Pay attention to the measurementType field as it has a significant impact on the behavior of your meter.
post/meters
Request
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
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
Headers
x-organization-idinteger
Required if using a multi organizations token
Request body
Example request
{
"description": "This meter is used for monitoring the temperature of the boiler",
"measurementType": "AUTOMATED_SENSOR",
"unit": "Celsius",
"assetId": 123,
"locationId": 123
}Response
Successfully created meter
Example response
{
"id": 123
}Changes
- breaking
removed the media type
application/octet-streamfrom the request body - info
added the new optional
headerrequest parameterx-organization-id - info
added the new optional
queryrequest parameterskipWebhook - info
added the new
AUTOMATED_SENSORenum value to the request property - info
added the non-success response with the status
- breaking