WebAPI - Creating a failure cause

WebAPI - Creating a failure cause

This method allows to create a failure cause in a simplified manner.
The method to be used when creating a failure cause:
POST url/api/mytenant/myorganization/maintenancecore/failurecauses

Json example for creating a failure cause: 

1.          {

        "failureCauseKey""C05",

        "description""Falha de energia",

        "remarks"null,

        "failureCauseActions": [

            {

                "failureAction""A01"

            },

            {

                "failureAction""A02"

            }

        ]

    }

This method allows to create a failure cause to the parameters filled in:
  1. failureCauseKey: The failure cause's key. Mandatory field.
  2. description: Short description of the failure cause. This field is mandatory.
  3. remarks: Remarks.
  4. failureCauseActions: In these parameters, we must associate the different failure actions. This way, in each failureAction, we place the failure action key.
When this method is executed successfully, it returns HttpStatusCode.OK.



    • 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 - Creating a failure symptom

      This method allows to create a failure symptom in a simplified manner.  The method to be used when creating a failure symptom is:   POST url/api/mytenant/myorganization/maintenancecore/failuresymptoms  Json example for creating a failure symptom: { ...
    • Webapi - Deleting a failure cause

      This method allows to delete a failure cause in a simplified manner.  The method to be used when deleting a failure cause is:   DELETE   url/api/mytenant/myorganization/maintenancecore/failurecauses/{{failureCauseKey}}  The parameters being replaced ...
    • Webapi - Creating a failure

      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", ...