Webapi - Creating a labor report in a work order

Webapi - Creating a labor report in a work order

This method allows you to create a labor report in a work order in a simplified way.

The method used to create a labor report in a work order is:
 
POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportLabors
 
Json example to create a labor report in a work order:
  1. 1.  {
        "workOrderReportLaborKey""L0001",
        "reportDate""2021-08-17T14:38:36.8969313+00:00",
        "t├írdate""2021-08-17T07:38:52+00:00",
        "endDate""2021-08-17T14:38:59+00:00",
        "totalTime"25207,
        "remarks"null,
        "workOrder""0001",
        "assetType"2,
        "location"null,
        "equipment""ATC01",
        "tool"null,
        "employee""0007",
        "schedulingLaborCost""1",
        "expertise"null,
        "expertiseTier"null,
        "currency""EUR",
        "company""DEMO",
        "workOrderMaintenancePlan""MP-000001_1",
        "task""T_00001"
    }

This method allows to create a WO labor report, according to the parameters filled in:
  1.  reportDate: The report date. Mandatory field.
  2. startDate: The report start date. Mandatory field.
  3. endDate: The report end date. Mandatory field.
  4. totalTime: The total time, in seconds. Mandatory field.
  5. remarks: Remarks.
  6. workOrder: The key of the work order the labor will be recorded to. Mandatory field.
  7. assetType: The asset type (2- equipment; 3- tool). Mandatory field.
  8. location: The location's key.
  9. equipment: The equipment key.
  10. tool: The tool's key.
  11. employee: Employee key. Mandatory field.
  12. schedulingLaborCost: The key of the scheduling group. Mandatory field, when the expertise has not been defined. If you fill in this field, it is not mandatory to define the expertise.
  13. Expertise: The expertise key. Mandatory field, when the scheduling labor cost has not been defined. If you fill in this field, it is not mandatory to define the scheduling labor cost.
  14. expertiseTier: The key of the expertise level. Mandatory field, if the expertise field has been previously defined.
  15. currency: The currency's key. Mandatory field.
  16. company: The company's key. Mandatory field.
  17. workorderMaintenancePlan: The maintenance plan key.
  18. task: The task key.
 
When this method is executed successfully, it returns HttpStatusCode.201Created.



    • Related Articles

    • Webapi - Deleting a work order labor report

      This method allows you to delete a work order labor report.  The method used to delete a work order labor report is:   DELETE  url/api/mytenant/myorganization/maintenance/workorderreportlabors/{{companyKey}}/{{workorderreportlaborKey}} The parameters ...
    • 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 - Creating a work order assignment report

      This method allows you to create a work order assignment report in a simplified way.   The method used to create a work order assignment report is:   POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workorderassignments   Json example to ...
    • Webapi - Creating a consumption report in a work order

      This method allows you to create a consumption report in a work order in a simplified way.   The method used to create a consumption report in a work order is:   POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportConsumptions   ...
    • Webapi - Creating a task verification report for a work order

      This method allows you to create a task verification report for a work order in a simplified way. The method used to create a task verification report for a work order is:     ...