Delete Template API

Use this API to delete a template in API user’s scope.

POST /qps/rest/1.0/delete/saq/template/<id>

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

The id (Long) element is required.

Sample - Delete a TemplateSample - Delete a Template

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> 

XSDXSD

<platform API server>qps/xsd/1.0/saq/template.xsd

See Delete templates (bulk)