Deprecate, Reject, and Approve Scripts API

Deprecate, reject or approve a script based on the script name or ID.

POST/sm/v1/scripts/{scriptId}/{action}

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

scriptId 

 Mandatory

Integer

Provide the ID of the script.

action

 Mandatory

String

Provide the action to perform on the script. Valid values are deprecate, approve, and reject.
comment Optional String Provide a comment for the action being performed on the script.

SampleSample

API Request

 curl --location --request POST 'https://qualys_base_url/sm/v1/scripts/{ScriptId/ScriptName}/deprecate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer  \
--data '{
  "comment": "Approved" 
}'

Response

 200-OK {}