Use this API to create a new version of an existing template based on its ID.
The user must have the Security Assessment Questionnaire (SAQ) module enabled, the user must have API ACCESS, Access SAQ module, Questionnaire Invite , and Questionnaire Template Create 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 "POST" --data-binary @-
"https://<qualysbaseurl>/qps/rest/1.0/newversion/saq/template" < file.xml
Note: "file.xml" contains the request POST data.
Request POST Data
<?xml version="1.0" encoding="UTF-8"?>
<ServiceRequest>
<data>
<Template>
<id>82968</id>
</Template>
</data>
</ServiceRequest>
Response
<?xml version="1.0" encoding="UTF-8"?> <ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http:// <qualysbaseurl>/qps/xsd/1.0/saq/template.xsd"> <responseCode>SUCCESS</responseCode> <count>1</count> <data> <Template> <id>82968</id> </Template> </data> </ServiceResponse>
<platform API server>qps/xsd/1.0/saq/template.xsd