GET apioauth/v4/assetstatus/{assetId}
Get an asset status by asset id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
assetId |
The asset id queried |
unsigned integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A AssetStatusReponse
OAuthAssetStatusResponseName | Description | Type | Additional information |
---|---|---|---|
AssetId |
The id of the asset |
unsigned integer |
None. |
SiteCode |
The asset site code |
string |
None. |
TagId |
The asset tag id |
string |
None. |
Timestamp |
The last updated time of the asset in UTC |
date |
None. |
Name |
The name of the asset |
string |
None. |
Latitude |
The last known latitude of the asset |
decimal number |
None. |
Longitude |
The last known longitude of the asset |
decimal number |
None. |
Street |
The street where the asset is located |
string |
None. |
Town |
The town where the asset is located |
string |
None. |
Country |
The country where the asset is located |
string |
None. |
Postcode |
The postcode where the asset is located |
string |
None. |
ServiceId |
The id of the service the asset is attached to or 0 if it is not currently attached |
unsigned integer |
None. |
VehicleRegistration |
The vehicle registration of the service the asset is attached to or null if it is not currently attached |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "AssetId": 1, "SiteCode": "sample string 2", "TagId": "sample string 3", "Timestamp": "2025-04-27T16:04:09.5136071+00:00", "Name": "sample string 5", "Latitude": 6.1, "Longitude": 7.1, "Street": "sample string 8", "Town": "sample string 9", "Country": "sample string 10", "Postcode": "sample string 11", "ServiceId": 12, "VehicleRegistration": "sample string 13" }
application/xml, text/xml
Sample:
<OAuthAssetStatusResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AssetId>1</AssetId> <SiteCode>sample string 2</SiteCode> <TagId>sample string 3</TagId> <Timestamp>2025-04-27T16:04:09.5136071+00:00</Timestamp> <Name>sample string 5</Name> <Latitude>6.1</Latitude> <Longitude>7.1</Longitude> <Street>sample string 8</Street> <Town>sample string 9</Town> <Country>sample string 10</Country> <Postcode>sample string 11</Postcode> <ServiceId>12</ServiceId> <VehicleRegistration>sample string 13</VehicleRegistration> </OAuthAssetStatusResponse>