Use this API to delete a campaign in the API user’s scope.
The user must have the Security Assessment Questionnaire (SAQ) module enabled; the user must have API ACCESS, Access SAQ module, and Questionnaire Campaign Delete permissions. The campaign 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/delete/saq/questionnairecampaign/952401"
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/questionnairecampaign.xsd">
<responseCode>SUCCESS</responseCode>
<count>1</count>
<data>
<QuestionnaireCampaign>
<id>952401</id>
</QuestionnaireCampaign>
</data>
</ServiceResponse>
<platform API server>/qps/xsd/1.0/saq/questionnairecampaign.xsd