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 / updateWorkOrderReportMiscCostInfo/{{companyKey}}/{{workOrderReportMiscCostKey}}
The parameters in the method are:
- companyKey: company key
- workOrderKey: work order key
Json example to update a work order
{
"Description": "Other Cost Record",
"MiscCostDate": "2019-09-05T11:31:17 +00:00",
"Employee": "P00004",
"MiscCost": "0000000001",
"MiscCostsType": "0000000001",
"Quantity": 10,
"Value": {
"amount": 88
},
"WorkOrderMaintenancePlan": "MP1",
"WOMaintenancePlanTaskId": "45D98B07-9F8B-4C27-90E4-6243AEAEE300",
"WOTaskId": "69703AF8-49EB-4C0A-B0A4-49FBE25F7D61",
"Remarks": "General Remarks "
}
This method allows to change a work order other cost report according to the parameters filled in
- Description: the other cost description. This field is required.
- Employee: the employee key.
- MiscCost: the other cost key.
- MiscCostsType: the key of the other cost type.
- Quantity: the quantity
- Value
- Amount: the unit value of the other cost.
- Remarks: the observations.
- Expertise: the specialty key.
- ExpertiseTier: the key of the specialty level.
- WorkOrderMaintenancePlan: the key of the WO maintenance plan.
- WOMaintenancePlanTaskId: the task identifier associated to the WO maintenance plan.
- WOTaskId: the task identifier for the WO additional work. This field cannot be used together with the maintenance plan or the maintenance plan task.
When a method is executed successfully, it returns a HttpStatusCode.OK.
Related Articles
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 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 - Getting the list of misc costs
This method allows to get the list of misc costs in a simplified manner. The method to be used when getting the list of misc costs is: GET url/api/mytenant/myorganization/maintenancecore/misccosts When this method is executed successfully, it ...
Webapi - Creating a misc cost report in a work order
This method allows you to create a misc cost report in a work order in a simplified way. The method used to create a misc cost report in a work order is: POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportmisccosts Json example ...