Update an existing asset's record. When updating an asset you only need to specify the fields that you would like to change. All other fields will remain unchanged.
To update an asset's group, you might send the following XML.
<asset>
<group_ids>2908</group_ids>
</asset>To remove an asset's group, you might send the following XML.
<asset>
<group_ids></group_ids>
</asset>To change the name of an asset, you might send the following XML.
<asset>
<name>Smith St Rose Garden</name>
</asset>To disable an asset, you might send the following XML.
<asset>
<enabled>false</enabled>
</asset>Security
apiKey
PUT
curl -i -X PUT \
'https://go.vworkapp.com/api/v5/assets/{id}.xml?api_key=string&use_third_party_id='\''1'\''&api_key=YOUR_API_KEY_HERE' \
-H 'Accept-Encoding: gzip' \
-H 'Content-Type: application/xml; charset=utf-8' \
-d '<?xml version="1.0" encoding="utf-8"?>
<asset>
<enabled>false</enabled>
</asset>'Response
<?xml version="1.0" encoding="utf-8"?>
<asset>
<id readonly="readonly">345232</id>
<name>Milkshake</name>
<model>Yard</model>
<serial>123456</serial>
<notes>A sample note</notes>
<group_ids>2908</group_ids>
<customer_id>123456</customer_id>
<attachment_id></attachment_id>
<third_party_id>Kelis</third_party_id>
<cost>42.50</cost>
<enabled>false</enabled>
<taggings type="array">
</taggings>
<hazards type="array">
</hazards>
<custom_fields type="array">
</custom_fields>
<location>
<id type="integer">84710961</id>
<address1></address1>
<address2></address2>
<suburb></suburb>
<city></city>
<post_code></post_code>
<country></country>
<province></province>
<region></region>
<state></state>
<formatted_address>200 Queen Street, Auckland, New Zealand</formatted_address>
<lat type="decimal">-36.848616</lat>
<lng type="decim…