Alert Dismiss API issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Alert Dismiss API issue

L0 Member

I’m have a bit of trouble getting the alert/dismiss (https://api.docs.prismacloud.io/reference#dismiss-alerts) call of the rest Api to work. I get a 400 error code with no error message in the response (e.g. missing required parameter, invalid parameter, etc), so I'm not sure what is wrong with my payload.

 

payload: {
alerts: ["P-41149", "P-41148" , "P-41147"]
}

 

I have also tried adding filters to the payload, which results in the same error.

 

payload: {
"alerts": ['P-41149', 'P-41148' , "P-41147"]
"filter": {
"filters":[
{
"operator":"=",
"name":"alert.status",
"value":"open"
},
{
"operator":"=",
"name":"policy.type",
"value":"config"
}
],
"timeRange": {
'type': 'relative',
'value': {
'relative': 1,
'unit': 'week'
}
}
}
}

 

 

0 REPLIES 0
  • 1879 Views
  • 0 replies
  • 1 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!