WebAPI

WebAPI – Maintenance Plans

34 views 3 September, 2018 Valuekeep 0

This service allows you to handle Maintenance Plans in Valuekeep.

Below you can find an analysis of the methods available through the service.

Assign a Maintenance Plan

POST /api/mytenant/myorganization/maintenancemanagementcore/workordertaskassignments/AssignMaintenancePlan

This method offers a simple way of assigning a Maintenance Plan to an Employee. The “body” of the message must follow the structure for the MaintenancePlanAssignmentResource.

Example:

{
“WorkOrderKey”: “OT0040”,
“MaintenancePlans”: [{
“MaintenancePlanKey”: “MP-000001.1”,
“EmployeesToAssign”: [“0001”]
}]
}

You can also add “EmployeesToUnassign” to the message body on the same request to unassign the maintenance plan.

Unassign a Maintenance Plan

POST /api/mytenant/myorganization/maintenancemanagementcore/workordertaskassignments/AssignMaintenancePlan

This method offers a simple way of assigning a Maintenance Plan to an Employee. The “body” of the message must follow the structure for the MaintenancePlanAssignmentResource.

Example:

{
“WorkOrderKey”: “OT0040”,
“MaintenancePlans”: [{
“MaintenancePlanKey”: “MP-000001.1”,
“EmployeesToUnassign”: [“0001”]
}]
}

Foi útil?