Valuekeep DevelopmentWork
DevelopmentWork
Work
Back | List of Articles

How to create or delete a failure?

Last changed in 26/12/2024

This method allows to create a failure in a simplified manner.

 The method to be used when creating a failure is:

POST url/api/mytenant/myorganization/maintenancecore/failures

 Json example for creating a failure:
{
        "failureKey": "001",
        "description": "fail 001",
        "failureDate": "2021-08-09T11:21:13+01:00",
        "causedEnvironmentalDamage": false,
        "causedPersonalInjury": true,
        "increasedRiskPersonalInjury": false,
        "remarks": null,
        "workOrder": "000001",
        "assetType": 2,
        "equipment": "ATC02",
        "tool": null,
        "failureTypifications": [
            {
                "failureSymptom": "S01",
                "failureCause": "C01",
                "failureAction": "A01"
            }
        ],
        "company": "DEMO"
    }
This method allows to create a failure according to the parameters  filled in:
  1. failureKey: The key of the failure. Mandatory field.
  2. description: Short description of the failure. Mandatory field.
  3. failureDate: Failure date.
  4. causedEnvironmentalDamage: "caused environmental damage?" Fill in this field with true or false.
  5. causedPersonalInjury: "caused personal injury?" Fill in this field with true or false.
  6. increasedRiskPersonalInjury: "increased risk of personal injury?" Fill in this field with true or false.
  7. remarks: Remarks.
  8. WorkOrder: The key of the work order the failure will be associated to. Mandatory field.
  9. AssetType: The asset type (2- equipment; 3- tool). It is only possible to associate to a failure, an asset of type 2 or 3. Mandatory field.
  10. equipment: The equipment key.
  11. tool: The tool's key.
  12. failureTypifications: In these parameters, we can associate the failure symptoms, causes and actions, placing in each parameter the corresponding key.
  13. company: The company's key. Mandatory field.

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

 

Bookmark or share this article
Esta página foi útil?
Obrigado pelo seu voto.
Related Articles
How to create or delete work orders? How to update a work order? How to change the status of the work order? How to create a monitoring? How to get the failure list?