Webapi - Creating a maintenance plan

Webapi - Creating a maintenance plan

This method allows to create a maintenance plan in a simplified manner.

 The method to be used when creating a maintenance plan is:
 
POST url/api/mytenant/myorganization/maintenancecore/maintenanceplans

 Json example for creating a maintenance plan:

  1. {
            "maintenancePlanKey""PM_0001",
            "description""Verificação tubos de água ",
            "remarks"null,
            "maintenancePlanType""CR",
            "maintenancePlanTasks": [
                {
                    "task""T_000001",
                    "duration""01:00:00"
                }
            ],
            "workshop""MN"
        }

This method allows to create a maintenance plan according to the parameters filled in:


  1. maintenancePlanKey: The maintenance plan key. This field is mandatory.
  2. description: Short description of the maintenance plan. This field is mandatory.
  3. remarks: Remarks.
  4. maintenancePlanType: The key of the maintenance plan type. This field is mandatory.
  5. maintenancePlanTasks. The task key for the maintenance plan and its duration. This field must have at least one task.
  6. workshop: The key of the workshop.

When this method is executed successfully, it returns HttpStatusCode.201Created.



    • Related Articles

    • WebAPI - Creating a warehouse

      This method allows to create a warehouse in a simplified manner. The method to be used when creating a warehouse: POST url/api/mytenant/myorganization/inventorycore/warehouses Json example for creating a warehouse: 1. { "warehouseKey": "W2", ...
    • 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 - Deleting a maintenance plan

      This method allows you to delete a maintenance plan.  The method to be used when deleting a maintenance plan is:   DELETE  url/api/mytenant/myorganization/maintenancecore/maintenanceplans/{{maintenanceplanKey}}  The parameters being replaced on the ...
    • 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/ ...