Webapi - Creating a failure symptom

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:

  1. {
            "failureSymptomKey""S02",
            "description""Sintoma 2",
            "remarks"null,
            "failureSymptomCauses": [
                {
                    "failureCause""C01"
                }
            ]
        }
This method allows to create a failure symptom according to the parameters filled in:
  1. failureSymptomKey: The key of the failure symptom. Mandatory field.
  2. description: Short description of the symptom failure. This field is mandatory.
  3. remarks: Remarks.
  4. failureSymptomCauses: In these parameters, we must associate the different failure causes. This way, in each failureCause, we place the failure cause key.
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 - Deleting a failure symptom

      This method allows to delete a failure symptom in a simplified manner.  The method to be used when deleting a failure symptom is:   DELETE   url/api/mytenant/myorganization/maintenancecore/failuresymptoms/{{failureSymptomKey}}  The parameters being ...
    • 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", ...
    • WebAPI - Creating a failure action

      This method allows to create a failure action in a simplified manner. The method to be used when creating a failure action:  POST url/api/mytenant/myorganization/maintenancecore/failureactions  Json example for creating a failure action:  1.        { ...