WebAPI – How do I update a work order?
This method offers a simplified way of performing changes to the Work orders.
The method to be used to create a work order is: POST /api/mytenant/myorganization/maintenance/workorders/updateWorkOrderInfo/{{companyKey}}/{{workOrderKey}}
The parameters in the method are:
- companyKey: company key
- workOrderKey: work order key
Json example to update a work order
- {
"Description": "Work Order 001",
"WorkOrderType": "0000000001",
"WorkOrderMaintenancePlans":
[
{
"MaintenancePlan":"0000000001"
}
],
"Workshop": null,
"PriorityLevel": null,
"Remarks": "General Remarks",
"ExpectedDate": "2019-08-31T11:15:17.477+00:00"
}
This method allows to create a work order according to the following parameters filled in
- WorkOrderKey: the key ot he WO. This field is required.
- Description: the WO's description. This field is required.
- WorkOrderType: the key of the WO type. This field is required.
- WorkOrderMaintenancePlans: a set of maintenance plans that must be executed in the WO. It is required to define at least one maintenance
- MaintenancePlan: Maintenance Plans Key.
- Workshop: the key of the WO workshop. If not specified, by default it is the workshop in the work order type.
- PriorityLevel: the priority level key of the WO. If not specified, the priority level is defined by default in the work order type.
- Remarks: the WO observations.
- ExpectedDate: Date the WO is expected to start..
When a method is executed successfully, it returns a HttpStatusCode.OK with the WO information.
Related Articles
WebAPI – How to update the misc costs report?
This method allows you to change the misc cost of a work order. The method to be used for changing one other cost is: POST /api/mytenant/myorganization/maintenance/workorderreportmisccosts / ...
WebAPI – How do I update the labor report?
This method allows you to change the labor record of a work order. The method to be used for changing the work order labor record is: POST /api/mytenant/myorganization/maintenance/workorderreportlabors/ ...
WebAPI – How do I update the task verification record?
This method allows you to change the task verification record of a work order. The method to be used for changing the work order task verification record is: POST /api/mytenant/myorganization/maintenance/ ...
WebAPI – How do I update the material consumption report?
This method allows to change a material consumption. The method to be used when changing the work order material consumption ...
WebAPI – How can I change the work order state?
This method allows you to change a work order state. The method to be used for changing the work order change is: Post {{url}/api/{{tenant}}/{{organization}}/maintenance/workorders/changeSchemaEntityState/{{companyKey}} The parameters in the method ...