Last changed in 26/12/2024
Create Record
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:
{
"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:
- reportDate: The report date. Mandatory field.
- startDate: The report start date. Mandatory field.
- endDate: The report end date. Mandatory field.
- totalTime: The total time, in seconds. Mandatory field.
- remarks: Remarks.
- workOrder: The key of the work order the labor will be recorded to. Mandatory field.
- assetType: The asset type (2- equipment; 3- tool). Mandatory field.
- location: The location's key.
- equipment: The equipment key.
- tool: The tool's key.
- employee: Employee key. Mandatory field.
- 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.
- 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.
- expertiseTier: The key of the expertise level. Mandatory field, if the expertise field has been previously defined.
- currency: The currency's key. Mandatory field.
- company: The company's key. Mandatory field.
- workorderMaintenancePlan: The maintenance plan key.
- task: The task key.
When this method is executed successfully, it returns HttpStatusCode.201Created.
Delete Record
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 being replaced on the method are:
- companyKey: The company key
- workorderreportlaborKey: The key of the labor report you wish to delete.
When this method is executed successfully, it returns HttpStatusCode.204.
Bookmark or share this article