Generate Report API

Use this API to generate a report using the job name and job ID.

POST /sm/v1/reports

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

name

Mandatory

String

Specify the report name.

The value supports only alphanumeric characters, underscores (_), dashes, single quotes ('), and brackets ( ) with a maximum of 128 characters. Avoid using blank spaces at the beginning and end of the report name; spaces between words are allowed.

jobId

Mandatory

Integer

Specify the job ID for which to generate the report.

SampleSample

API Request

curl -X POST
'<qualys_base_url>/sm/v1/reports'
 --header 'Authorization: Bearer <JWT Token>'
 --header 'Content-Type: application/json'
 --data-raw
'{
     "name": "Report_Job-1731391205",
     "jobId": "261332"
 }'

Response

{
  "data": {
    "fileUuid": "bc3ea460-a0c8-11ef-92e2-eda9848ac1cf"
  },
  "message": "Request successfully created."
}