API - Other Assets

Getting a list of all items

This request returns a summary of all Other Assets in the account.


Request

GET "https://app.samanage.com/other_assets.xml"

curl --digest -u "username:password" -H "Accept: application/vnd.samanage.v1+xml" -X GET "https://app.samanage.com/other_assets.xml"


Getting item's details

Request

GET "https://app.samanage.com/other_assets/26.xml"

curl --digest -u "username:password" -H "Accept: application/vnd.samanage.v1+xml" -X GET "https://app.samanage.com/other_assets/26.xml"

Response

<asset>
<type>IP-Phone</type>
<site nil="true"></site>
<department nil="true"></department>
<created-at>2009-05-17T10:13:20Z</created-at>
<model></model>
<status>Broken</status>
<updated-at>2009-05-17T10:13:20Z</updated-at>
<manufacturer>some manufacturer</manufacturer>
<ip-address></ip-address>
<serial-number></serial-number>
<href>https://app.samanage.com/other_assets/26.xml</href>
<id>26</id>
</asset>
 

Updating an item

The following request will update other asset properties for a specific asset.

PUT "https://app.samanage.com/other_assets/299.xml"

curl --digest -u "username:password" -d @stuff_to_update.xml -H "Content-Type:text/xml" -X PUT "https://app.samanage.com/other_asset/26.xml"

or

curl --digest -u "username:password" -d "<other_asset><manufacturer>ABC</manufacturer></other_asset>" -H "Content-Type:text/xml" -X PUT "https://app.samanage.com/other_asset/26.xml"

@stuff_to_update is an XML file with the properties you wish to update:

<other_asset>
<manufacturer>ABC company</manufacturer>
<asset_status_id>1</asset_status_id>
</other_asset>

The following properties can be updated:

asset_id
name
manufacturer
asset_type_id
model
asset_status_id
serial-number
ip-address
description
owner
site
department
first-name
last-name
email
phone
fax
address