Updated ( it was only a minor version or so out of date)
Still not working , but the 406’s are gone now and been replaced with 400’s…so that’s a definite step in the right direction !
{
"status": 400,
"message": "Request body is missing from the request. A request body is required for this resource.",
"links": [
{
"href": "https://insightvm:3780/api/3/vulnerability_exceptions",
"rel": "self"
}
]
}
For anyone still experiencing this, the issue is that the request contains the “nexposeCCSessionID” cookie.
When making an API call, the only authentication needed is the “Authorization” header, if at some point the IVM server returns that session ID cookie, then any requests you send with it will error with HTTP 406 “Not Acceptable”.
Delete the nexposeCCSessionID cookie from your request to fix this. Or as the other commenters mention, completely reinstall/update whichever software you were using, which should also have the effect of clearing the cookie