Edit Asset Group

POST/api/2.0/fo/asset/group/?action=edit

Edit an asset group present in the user's account.

Click here to see the required permissions.

Input ParametersInput Parameters

Parameter

Required/Optional

Data Type

Description

action=edit

Required String 

The POST method must be used to edit assget group.

echo_request={0|1}

Optional Integer 

Specify 1 to show (echo) the request’s input parameters (names, values) in the XML output. When unspecified, parameters are not included in the XML output.

id={value}

Required Integer 

The ID of the asset group you want to edit.

{parameters}

   

See Asset Group parameters

Sample - Edit Asset GroupSample - Edit Asset Group

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -X "POST"-d "id=1234567&set_title=MY ASSET GROUP""https://<qualys_base_url>/api/2.0/fo/asset/group/?action=edit"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://<qualys_base_url>/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2018-03-29T15:29:00Z</DATETIME>
    <TEXT>Asset Group Updated Successfully</TEXT>
    <ITEM_LIST>
      <ITEM>
        <KEY>ID</KEY>
        <VALUE>395752377</VALUE>
      </ITEM>
    </ITEM_LIST>
  </RESPONSE>
</SIMPLE_RETURN>

DTD

<platform API server>/api/2.0/simple_return.dtd