With this API, you can add sections within a compliance policy.
|
Parameter |
Required/Optional |
Data Type |
Description |
|---|---|---|---|
| policyId={value} | Required | Integer | The ID of the policy for which you want to add a section. |
| sectionHeading={value} | Required | Integer | Specify a title for the section to be added for the policy. |
API Request
curl -X 'POST' \
<qualys_base_url>/pcas/v3/policy/section' \
-H 'accept: application/json' \
-H 'Authorization: Bearer 'Auth_Token'\
-H 'Content-Type: application/json' \
-d '{"policyId": 5656121,"sectionHeading": "section 6"
}'
XML Output
{
"sectionNumber": 2,
"sectionHeading": "section 6",
"controls": []
}