Tech Tip: Using REST UI to update alerts with ticketID

Document created by Shaheen_Ahmed Employee on Apr 8, 2015Last modified by Shaheen_Ahmed Employee on Apr 8, 2015
Version 2Show Document
  • View in full screen mode

When using REST UI to update alerts with ticketID value you may get an "Invalid Identifier" error on the response. To succesfully update the alert with ticketID field you need to use the following method:

The PUT call requires you to provide all the attributes you get from GET call, for example, when you run

Get https://<SOIUI host>:7403/rest/alert/<Alert ID you would like to update>

you'll get the following result





<assigned />



<userAttribute1 />

<userAttribute2 />

<userAttribute3 />

<userAttribute4 />

<userAttribute5 />

<userAttribute6 />

<userAttribute7 />

<userAttribute8 />

<userAttribute9 />

<userAttribute10 />


<ticketUrl />


When executing the PUT call you'll have to copy the above result in to the body of the PUT call, edit the ticketID property to something similar to "<ticketId>RestUI</ticketId> ", the value "RestUI" needs to be changed to your actuall ticket number. You don't have to provide values to other attributes and they can remain as is.

NOTE: You'll have to change the content type to application/ as documented in "https://<SOIUI Hostname>:7403/rest/docs/rest/resource_AlertResource.html