Use this API to delete a template in 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.
The id (Long) element is required.
API Request
curl -u "USERNAME:PASSWORD" -H "content-type: text/xml" -X "GET" --data-binary @-
"https://<qualysbaseurl>/qps/rest/1.0/delete/saq/template/58969"
Response
<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://localhost:8383/qps/xsd/1.0/saq/template.xsd">
<responseCode>SUCCESS</responseCode>
<count>1</count>
<data>
<Template>
<id>58969</id>
</Template>
</data>
</ServiceResponse>
<platform API server>qps/xsd/1.0/saq/template.xsd