WebAPI – How to update the misc costs report?

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:
  1. companyKey: company key
  2. workOrderKey: work order key
Json example to update a work order

  1. {
    "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
  1. Description: the other cost description. This field is required.
  2. Employee: the employee key.
  3. MiscCost: the other cost key.
  4. MiscCostsType: the key of the other cost type.
  5. Quantity: the quantity
  6. Value
  7. Amount: the unit value of the other cost.
  8. Remarks: the observations.
  9. Expertise: the specialty key.
  10. ExpertiseTier: the key of the specialty level.
  11. WorkOrderMaintenancePlan: the key of the WO maintenance plan.
  12. WOMaintenancePlanTaskId: the task identifier associated to the WO maintenance plan.
  13. 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 ...