Webapi - Creating a work order type

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:
  1.     {
            "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:


  1. workOrderTypeKey: Key the work order type. Mandatory field.
  2. description: Short description of the work order type. This field is mandatory.
  3. isDefault: If true, this work order type will be the one selected by default. Fill in this field with true or false.
  4. remarks: Remarks.
  5. assignToTechnicianWhoCreatedWO: Assign to the person that created the WO.
  6. assignToWorkOrderResponsible: Assign to the person responsible for the WO.
  7. assignToWorkshopManagers: Assign to the workshop managers.
  8. assignToWorkshopTechnicians: Assign to the workshop technicians.
  9. defaultMaintenancePlan: Default maintenance plan.
  10. priorityLevel: Default priority level.
  11. 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: ...