Feb 28 2020 03:59 AM
Hi,
We are trying to get requests for security alerts using the http connector available in Logic apps. We are querying the Graph Explorer API using the GET method and we are able to get the requested results. However when we try to update the alert using the PATCH method, by changing some values like assigned to, comments, tags, vendor information etc and run the trigger it fails with one message:
Feb 28 2020 08:36 AM
Hi @Pranesh1060
did you enclose the date in "?
utcnow() will give you the right format, but as you can see here https://docs.microsoft.com/en-us/graph/api/alert-update?view=graph-rest-1.0&tabs=http#request-1
{ "assignedTo": "String", "closedDateTime": "String (timestamp)", "comments": [ "String" ], "feedback": "@odata.type: microsoft.graph.alertFeedback", "status": "@odata.type: microsoft.graph.alertStatus", "tags": [ "String" ], "vendorInformation": { "provider": "String", "vendor": "String" } }
the body needs to have closedDateTime in "" so its a string
Mar 02 2020 06:38 AM
@ Nicholas DiCola (SECURITY JEDI)Well I haven't as I am not sure the exact parameter to use. Would date be today's date? When the playbook is triggered how can we automatically add the date?