So im fairly new to working with the API and Postman, so lets get that out of the way first
Im trying to do some testing of pushing exceptions in via the API ( as we have hundreds we want to exclude (dont ask) and im not doing that manually!
But im getting 406’s. Ive checked the headers as referenced in a couple of other posts and they seem ok to me.
Can anybody spot anything obvious in this that could be worng or should I be looking elsewhere ( in postman for example)
curl --location --request POST 'https://insightvm:3780/api/3/vulnerability_exceptions' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Basic aWFtQVBJOkZHUUNqTzcjM2pRbTFqZ3RaMWpnTw==' \
--header 'Cookie: nexposeCCSessionID=1FDA80410870D907BF87F9337DF67FF9D92884DC' \
--data-raw ' {
"expires": "2021-09-03T012:00:00.000Z",
"review": {
"comment": "Auto approved by submitter.",
"date": "2020-09-01T13:35:34.124Z",
"scope": {
"type": "Global",
"vulnerability": "msft-cve-2017-0107"
},
"state": "approved",
"submit": {
"reason": "Other",
}
}}'