Example of using the platform REST API to modify an incident


You can use the PUT method to modify an incident.

  1. Open the Postman - REST Client.
  2. Create a token. 
  3. Set the Request URL as http://serverName:port/api/arsys/v1/entry/HPD:IncidentInterface/RequestIDOfAnIncidentOnHPD:IncidentInterface, for example:
    http://serverName:port/api/arsys/v1/entry/HPD:IncidentInterface/INC000000000806|INC000000000806
  4. Select the operation as PUT.
  5. Click Headers.
    Enter the following data as key value pair in the header:

    Key

    Value

    Authorization

    AR-JWT <tokengenerated>

    Content-Type

    application/json

  6. Select raw.
  7. From the list, select JSON.
  8. Enter the JSON input for creating an incident.
    Refer to the following sample code.

    {
     "values": {                                               
    "Description" : "Rest API: Resolve Incident using Rest
    API"
    ,                                               
    "Status" : "Resolved",                                               
    "Status_Reason" : "Future Enhancement",                                               
    "Resolution" : "Resolve through Rest API"
    }
    }
  9. Click Send.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*