- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-24-2020 07:09 PM
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'
}
}
}
}
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!