Unsolved
This post is more than 5 years old
1 Message
0
606
August 13th, 2015 11:00
How to update notifications using EDAA 9.4 RESTful interface?
I found a previous thread, Re: Setting a value in UDF using EDAA but it remains unanswered.
I’m working on building automation against the EDAA 9.4 interface and I’m having some difficulty getting notification updates, via PUT messages, to take hold. I believe that I do not have the JSON payload formatted correctly, but there may be some other problem that I’m not aware of.
The work flow is the following:
POST to instances/ICS_Notification:: /action/takeOwnership
- PUT to instances/ICS_Notification:: I’ve been told that this is the correct call, he made a demonstration of it earlier but did not provide payload details.
POST to instances/ICS_Notification:: /action/changed
- GET to instances/ICS_Notification:: à to confirm changes L
My PUT message is as follows
PUT http://.../instances/ICS_Notification::NOTIFICATION-activeAssetOnly_***_activeAssetOnly HTTP/1.1
X-EMC-MAC-USE-401: TRUE
X-EMC-MAC-NO-TICKET-REDIRECT: TRUE
Content-Type: application/json; charset=utf-8
Host: ...
Content-Length: 129
Expect: 100-continue
{
"arguments": {
"User": "User-Test",
"AuditTrailText": "Testing PUT Insert",
"TroubleTicketID": 123456
}
}
But all responses afterward show no change:
Can you please point me in the right direction? This project is constrained to use remote HTTP traffic only, please don’t recommend any solutions outside this constraint. Thank you.



nbruce
53 Posts
0
August 27th, 2015 08:00
Andrew,
It appears that some of the attributes you are trying to set are either not configurable or they do not exist as attributes for ICS_Notification. "User", AuditTrail fails in this category. The values for these can be alternatively passed as arguments to takeOwnership.
The TroubleTicketID can be set, the Json content is the issue. It is the className as the key and the attributes you want to set as a Json list. For example to set the TroubleTicketID and the UserDefined7 field you would use the following Json content:
{
"ICS_Notification": { "TroubleTicketID": "1234", "UserDefined7": "Test Value" }
}