Update Exceptions Associated with an Image

Lets you update the list of exceptions mapped to an image.

PUT/csapi/v1.3/images/{imageId}/exceptions

Input ParametersInput Parameters

Parameter Mandatory/Optional Data Type Description
imageId Mandatory string Specify the UUID of the image.
exceptionEvent Mandatory string Specify whether to add or remove exceptions. The valid values are: ASSIGN and DEASSIGN.
exceptionIds Mandatory string Specify the UUIDs of exceptions to be added or removed.

Sample: Update Exceptions Mapped to an ImageSample: Update Exceptions Mapped to an Image

API Request

curl -X "PUT"
"<qualys_base_url>/csapi/v1.3/images/9baf9f85-f3bf-3259-b8d5-3cd51967d34a/exceptions"
-H "accept: application/json"
-H "Authorization: Bearer <token>’
-H "Content-Type: application/json"
-d "{
"exceptionEvent": "ASSIGN",
"exceptionIds": [
"c0b4ec8d-a186-4f2c-9a6d-3adc3dfb3cff"
]
}"

Response

{
    "imageUuid": "9baf9f85-f3bf-3259-b8d5-3cd51967d34a"
}

Error Response

The following error response is seen when the sub-users don't have permission to the specified image.

    {  
    "errorCode": "403 FORBIDDEN",  
    "message": "Request Forbidden",  
    "timestamp": 1700721586546
    }