Valuekeep DevelopmentTransversal
DevelopmentTransversal
Transversal
Back | List of Articles

How to create or delete a maintenance plan?

Last changed in 26/12/2024

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

Delete 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 method are:
  1. maintenanceplanKey: key of the maintenance plan you wish to delete.
 When this method is executed successfully, it returns HttpStatusCode.204.
Bookmark or share this article
Esta página foi útil?
Obrigado pelo seu voto.
Related Articles
How to get the list of maintenance plans? How to create or delete a miscellaneous cost type? How to get the list of miscellaneous cost types? How to create or delete a miscellaneous cost? How to get the list of miscellaneous costs?