Update patch template

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

[PUT]

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

Input Parameters

Click here to view parameters for updating patch templates.

Sample

API request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With:curl" -X PUT -H "Content-type: text/xml" --data-binary @scan_export.xml "https://qualysapi.qualys.com/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://qualysapi.qualys.com/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://qualysapi.qualys.com/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