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