Get an asset

Get the Asset that matches the assetNumber for the authenticated account.

Sample request:

GET /v1/assets/A10001

Sample response:

200
{
    "AssetNumber": "A10001",
    "AssetName": "Flatbed - 1",
    "Make": "Hino",
    "Model": "GH",
    "Year": 2003,
    "Notes": "",
    "ESN": "659865465241"
    "PrimaryGroupId": null,
    "PrimaryGroupName": "Entire Fleet"
}
        
404
{
    "Message": "The AssetNumber was not found A99999",
}
get
https://api.us.vzconnect.com/ast/v1/assets/{assetNumber}

Path Parameters

assetNumberstringrequired

The AssetNumber that defines the Asset that will be retrieved. Should not be null or empty and should be no more than 96 characters long

Response

If the request was successful

AssetFull

AssetNumberstring
AssetNamestring
Makestring
Modelstring
Yearinteger(int32)
Notesstring
ESNstring
PrimaryGroupIdstring
PrimaryGroupNamestring
 

Update an asset

Update the Asset, identified by assetNumber with the details of the DTO. The update is partial, any fields not specified or specified as null will not be updated. To change an asset’s primary group, use PUT /v1/assets/{assetNumber}/primaryGroup/{primaryGroupId}.

Sample requests:

PUT /v1/assets/A10001
{
    "AssetNumber": "A76",
    "AssetName": "Flatbed - 76"
}
        
PUT /v1/assets/A10001
{
    "AssetNumber": null,
    "AssetName": null,
    "Make": null,
    "Model": null,
    "Year": null,
    "Notes": "Booked for major work, will be out-of-service for two weeks starting November 1st"
}
        
PUT /v1/assets/A10001
{
    "AssetName": "Refrigeration Unit 3",
    "Make": "Hino",
    "Year": 2020,
}

Sample responses:

204
        
404
{
    "Message": "The AssetNumber was not found A99999",
}
        
400
{
    "Message": "The AssetName A10002 is already in use",
}
put
https://api.us.vzconnect.com/ast/v1/assets/{assetNumber}

Path Parameters

assetNumberstringrequired

The AssetNumber that defines the Asset that will be updated. Should not be null or empty and should be no more than 96 characters long

Body

The DTO that specifies what Asset information should be updated. At least one field should not be null. The usual validity checks apply to the fields that are not null, for example, a new AssetNumber should not be empty and should be no more than 96 characters long.

ExternalAssetUpdate

AssetNumberstring

<= 96 characters

AssetNamestring
Makestring
Modelstring
Yearinteger(int32)
Notesstring

Response

If the request was successful

 

Set an asset's primary group

Sets the primary group of the Asset, identified by assetNumber, to be the group identified by primaryGroupId.

put
https://api.us.vzconnect.com/ast/v1/assets/{assetNumber}/primaryGroup/{primaryGroupId}

Path Parameters

assetNumberstringrequired

The AssetNumber that defines the Asset that will be updated. Should not be null or empty and should be no more than 96 characters long

primaryGroupIdstringrequired

The GroupId that will be set as the primary group for the assetNumber. Should not be null or empty and should be no more than 45 character long

Response

If the request was successful

 

AssetLocation

object

Designed for Asset History requests
/v1/assets/{assetnumber}/status/history

Addressobject
Show Child Parameters
DeviceTimeZoneOffsetinteger(int32)
DeviceTimeZoneUseDSTboolean
Latitudenumber(double)
Longitudenumber(double)
UpdateUTCstring(date-time)
Example

ContentResource[AssetGeoLocation]

object
Valueobject

Designed for Asset last Location requests
/v1/assets/{assetnumber}/location

Show Child Parameters
Statusinteger(int32)

Allowed values:100101102103200201202203204205206207208226300301302303304305306307308400401402403404405406407408409410411412413414415416417421422423424426428429431451500501502503504505506507508510511

Example