Alert Dismiss API issue

Reply
Highlighted
L0 Member

Alert Dismiss API issue

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'
}
}
}
}

 

 

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 Live Community as a whole!

The Live Community thanks you for your participation!