Description
This method can create a set of maintenance tasks. And it returns status of maintenance tasks created.
Note : Maintenance tasks cannot be created in plants associated with buildings
Request
Parameter | Type | Mandatory/Optional | Comments |
---|---|---|---|
plantId | long | Mandatory | Id of the plant to which the job should be associated |
maintenanceTasks | List<TaskInput> | Mandatory | List of maintenance tasks |
applicationName | string | Mandatory | Third party application identifier, identifying the client consuming the web service – (Length of the applicationName should be less than or equal to 10) |
Response
Type | Description |
---|---|
List<MaintenanceTaskCreateStatus> | Status of the maintenance tasks created |
Note : If an error occurred while creating a task, MaintenanceTaskCreateStatus for that task will have the associated error code.
Exceptions
Error Code | Description |
---|---|
123 | An exception occured while processing your request |
138 | ApplicationName length is exceeded maximum allowed character limit (10) |
146 | The application name is not set |
152 | No property connected to the given plant id |
167 | You are not authorized to use this web method |
193 | Maintenance task must contain a description |
194 | Invalid deviceId |
195 | Needs to have at-least one maintenance task |
202 | This operation can only be done on plants connected to properties |
204 | Entered month is not valid. The range is from 1-12 |
205 | Given device's roomId conflicts with the roomIds provided |
207 | RoomId doesn't exist or doesn't belong to the given plant |
216 | Maintenance description length is exceeded maximum allowed character limit (70) |