Delete Blocked Commands

Delete Blocked Commands is a configuration-based API. It is a configuration-based API that helps you delete the blocked commands.

The API can be executed only by the Manager user role.

API Version History

The following table provides the information about the different versions of this API along with the status:

API Version Status EOS Timeline EOL Timeline
v2 Active N/A N/A
v1 End-of-support (EOS) December 2025 - June 2026 June 2026

For more information on API versioning, refer to API Versioning.

v2 API

POST sm/v2/block-commands/delete

Input ParametersInput Parameters

Parameter Mandatory/
Optional
Data Type Description
commandIds Mandatory Set<Long> Provide the list of blocked command IDs.
user Optional Object Provide the user details like name and id of user
Authorization Mandatory String Authorization token to authenticate to the Qualys Enterprise TruRisk™ Platform. Prepend the token with 'Bearer', followed by a space. For example: Bearer .

Sample: Delete a blocked commandSample: Delete a blocked command

API Request

curl -X POST
'<qualys_base_url>/sm/v2/block-commands/delete'
-header 'Content-Type: application/json'
-header 'Authorization: Bearer {{authToken}}'
-data '{
    "commandIds": [2,3],
    "user": {
      "id": "9321x0x3-5372-4107-817x-x5647xx6Xx11",
      "name": "string",
      "userName": "string"
    }
  }'

Response

{
  "body": "Commands Deleted Successfully"
}