Delete Templates in Bulk API
Use this API to delete multiple templates in the API user’s scope.
Permissions
The user must have the Security Assessment Questionnaire (SAQ) module enabled, User must have API ACCESS, Access SAQ module, Questionnaire Invite , and Questionnaire Template Delete permissions. The template must be within the API user's scope.
Input ParameterInput Parameter
All elements for the search operation are supported. See Search templates.
SampleSample
API Request
curl -u "<username>:<password>"
-H "content-type: text/xml"
-X "POST" --data-binary @-
"<qualys_base_url>/qps/rest/1.0/delete/saq/template" < file.xml
Note: "file.xml" contains the request POST data.
Request POST Data
<ServiceRequest> <filters> <Criteria field="category" operator="EQUALS">DORA</Criteria> </filters> </ServiceRequest>
Response
<?xml version="1.0" encoding="UTF-8"?> <ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="<qualys_base_url>/qps/xsd/1.0/saq/template.xsd"> <responseCode>SUCCESS</responseCode> <count>2</count> <data> <Template> <id>1271602</id> </Template> <Template> <id>1271801</id> </Template> </data> </ServiceResponse>
XSDXSD
<platform API server>qps/xsd/1.0/saq/template.xsd