Authorization: Bearer ********************x-api-key: ********************{
"exception": {
"text": "My Exception",
"hosts": "178.151.13.5",
"port": 8080,
"task": "4879b8a6-fb3e-4a0d-aef8-b0ea469ac85c",
"scan": "a7a2f3fe-ff95-4c3f-9ff0-56fb58648122",
"new_severity": 2,
"nvt": "1.3.6.1.4.1.25623.1.0.815255"
}
}curl --location --request PUT '/v2/exceptions/' \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"exception": {
"text": "My Exception",
"hosts": "178.151.13.5",
"port": 8080,
"task": "4879b8a6-fb3e-4a0d-aef8-b0ea469ac85c",
"scan": "a7a2f3fe-ff95-4c3f-9ff0-56fb58648122",
"new_severity": 2,
"nvt": "1.3.6.1.4.1.25623.1.0.815255"
}
}'{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"type": "targets",
"attributes": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"text": "string",
"owner": "string",
"active": true,
"creation_time": "2019-08-24T14:15:22.123Z",
"modification_time": "2019-08-24T14:15:22.123Z",
"port": "string",
"hosts": "string",
"new_severity": 0,
"scan": {
"uuir": "9b73530c-10b9-4ecf-b9f2-1a0aacbe4453",
"name": "string"
},
"nvt": {
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"name": "string"
},
"details": {
"submitted_by": "string",
"rejected_reason": "string",
"status": "requested"
}
}
}
}