Update Patch Template

PUT /api/2.0/fo/report/template/patch/?action=update

Update a patch report template in the user's account.

Input ParametersInput Parameters

Click here to view parameters for updating patch templates.

Sample - Update Patch TemplateSample - Update Patch Template

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With:curl" -X PUT -H "Content-type: text/xml" --data-binary @scan_export.xml "https://<qualys_base_url>/api/2.0/fo/report/template/patch/?action=update&template_id=5062219&report_format=xml"

XML Output (Success)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://<qualys_base_url>/api/2.0/fo/report/template/patch/dtd/update/output.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2021-06-18T10:39:12Z</DATETIME>
    <TEXT>Patch Report Template Successfully Updated</TEXT>
    <ITEM_LIST>
      <ITEM>
        <KEY>ID</KEY>
        <VALUE>5062219</VALUE>
      </ITEM>
    </ITEM_LIST>
  </RESPONSE>
</SIMPLE_RETURN>

XML Output (Success With Notification)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://<qualys_base_url>/api/2.0/fo/report/template/patch/dtd/update/output.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2021-06-18T10:39:12Z</DATETIME>
    <TEXT>Patch Report Template Successfully Updated</TEXT>
    <NOTIFICATION>Cloud provider Metadata setting has been turned off for this template as group by is changed to OS</NOTIFICATION>
    <ITEM_LIST>
      <ITEM>
        <KEY>ID</KEY>
        <VALUE>5062219</VALUE>
      </ITEM>
    </ITEM_LIST>
  </RESPONSE>
</SIMPLE_RETURN>

XML Output (With Error)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/fo/report/template/patch/dtd/update/output.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2021-06-18T10:39:12Z</DATETIME>
    <CODE>1905</CODE>
    <TEXT>parameter include_cloud_metadata has invalid value: 1 (include_cloud_metadata can only be
set when group_by is set to HOST)</TEXT>
  </RESPONSE>
</SIMPLE_RETURN>

DTD

<platform API server>/api/2.0/fo/report/template/patch/dtd/update/output.dtd