Maintenance
Maintenance management
Fetch a list of Maintenance tasks
Without params, it returns a list of Maintenance tasks the user has access to
Parameters
allbooleanqueryCan only be used by admins or managers to fetch all entities
userIdintegerqueryStandard users can use this only with their own userId
deviceIdintegerqueryStandard users can use this only with _deviceId_s, they have access to
groupIdintegerqueryStandard users can use this only with _groupId_s, they have access to
refreshbooleanquerylimitintegerqueryLimit the number of returned results
offsetintegerqueryOffset for pagination
keywordstringquerySearch keyword filter
Response
OK
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Create a Maintenance task
Body
idinteger<int64>Unique maintenance item identifier
namestringMaintenance task name
typestringMetric the maintenance is based on
startnumberCurrent accumulated value when maintenance tracking starts
periodnumberThreshold value after which maintenance is due
attributesobjectCustom maintenance attributes
Response
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch a Maintenance task
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Update a Maintenance task
Body
idinteger<int64>Unique maintenance item identifier
namestringMaintenance task name
typestringMetric the maintenance is based on
startnumberCurrent accumulated value when maintenance tracking starts
periodnumberThreshold value after which maintenance is due
attributesobjectCustom maintenance attributes
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Delete a Maintenance task
Parameters
idintegerrequiredpathResponse
No Content
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)