Use this API to delete multiple templates in the API user’s scope.
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.
All elements for the search operation are supported. See Search templates.
API Request
curl -u "USERNAME:PASSWORD" -H "content-type: text/xml" -X "POST" --data-binary @-
"https://<qualysbaseurl>/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="https://qualysapi.p01.eng.sjc01.qualys.com/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>
<platform API server>qps/xsd/1.0/saq/template.xsd