The web service API uses the PUT method to modify an event. The URL to update or modify an event is http://<bppmserver>/bppmws/api/Event/update. The input parameters to modify an event are the same as the Input parameters in the JSON format to create events but the use the update
function instead of the create
function. You must provide authentication credentials by using the login API before accessing the data. For information about the authentication process, see Web services authentication.
Note
You must provide the mc_ueid
attribute to update an event. If it is not provided, a new event is created based on the input parameters.
Sample input parameters in the JSON format are as follows:
{ "eventSourceHostName": "bppmwsserver.calbro.com", "eventSourceIPAddress": "192.72.255.151", "attributes": { "CLASS": "EVENT", "mc_object_uri": "", "mc_ueid": "mc.pncell_BPPMprod.f0163a7.0", "severity": "OK", "msg": "Application Server Disk check OK", "mc_smc_alias": "Production AppServer", "mc_smc_id": "Model1_10000_S0109", "mc_owner": "Administrator", "mc_priority": "PRIORITY_5" } }
3 Comments
Patrick Mischler
What's the URL to modify Events?
I tried with the same URL for creating Events but I used the PUT method but it didn't work.
I didn't forget to specify the mc_id.
Javier Hernandez
Hi Patrick,
The proper URL to modify/update an existing event is the one below, which uses "update" call.
http://<bppmserver>/bppmws/api/Event/update
I'll work with IDD team to get this better documented.
Thanks,
Javier
Karanpreet Singh
How do you modify slots with lists?
For example I want to add notes to the event through a REST request. I can't seem to do it using REST where I can change the status, severity, priority etc just fine. A example with one slot of each type at least would be really helpful.
Regards,
Karan