Webapi - Creating a work order type
This
method allows to create a work order type in a simplified manner.
The method
to be used when creating a work order type is:
POST url/api/mytenant/myorganization/maintenancecore/workordertypes
Json
example for creating a work order type:
{
"workOrderTypeKey": "CRR",
"description": "Corretiva",
"isDefault": false,
"remarks": null,
"assignToTechnicianWhoCreatedWO": false,
"assignToWorkOrderResponsible": false,
"assignToWorkshopManagers": true,
"assignToWorkshopTechnicians": false,
"defaultMaintenancePlan": null,
"priorityLevel": "H",
"workshop": "MN"
}
This
method allows to create a work order type according to the parameters filled
in:
- workOrderTypeKey: Key
the work order type. Mandatory field.
- description:
Short description of the work order type. This field is mandatory.
- isDefault:
If true, this work order type will be the one selected by default. Fill in this
field with true or false.
- remarks:
Remarks.
- assignToTechnicianWhoCreatedWO:
Assign to the person that created the WO.
- assignToWorkOrderResponsible:
Assign to the person responsible for the WO.
- assignToWorkshopManagers:
Assign to the workshop managers.
- assignToWorkshopTechnicians:
Assign to the workshop technicians.
- defaultMaintenancePlan:
Default maintenance plan.
- priorityLevel:
Default priority level.
- workshop:
Default workshop.
When this
method is executed successfully, it returns HttpStatusCode.201Created.
Related Articles
WebAPI - Creating a request
This method allows to create a request in a simplified manner. The method to be used when creating a request: POST url/api/mytenant/myorganization/Requests/requests Json example for creating a request: { "requestKey": "00001", "description": "Vidro ...
WebAPI – How do I create work orders?
This method offers a simple way of creating a Work Order for a specific Asset, Location, Tool or Route. The method to be used to create a work order is: POST /api/mytenant/myorganization/maintenance/workorders/newWorkOrderInfo Json example to create ...
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 ...
WebAPI - Creating a requisition type
This method allows creating a type of requisition in a simplified manner. The method to be used to create a requisition type is: POST url/api/mytenant/myorganization/requisitionscore/requisitiontypes Json example for creating a type of requisition: ...
Webapi - How to create a part of the service type?
This method allows to create a part of the service type in a simplified manner. The method to be used to create a part of the service type is: POST url/api/mytenant/myorganization/businesscore/parts Json example to create a part of the service type: ...