Non-Powered Assets API

Operations for retrieving and updating non-powered assets and their primary group.

List active assets

Get all active Assets for the authenticated account.

Sample request:

GET /v1/assets

Sample responses:
200
[]

200
[{
    "AssetNumber": "A10001",
    "AssetName": "Flatbed - 1",
    "Make": "Hino",
    "Model": "GH",
    "Year": 2003,
    "Notes": "",
    "ESN": "659865465241"
    "PrimaryGroupId": null,
    "PrimaryGroupName": "Entire Fleet"
},{
    "AssetNumber": "A10002",
    "AssetName": "Flatbed - 2",
    "Make": "Hino",
    "Model": "FM1J",
    "Year": 2006,
    "Notes": "Requires Service"
    "ESN": "6598654587987",
    "PrimaryGroupId": "G10001",
    "PrimaryGroupName": "East coast fleet"
},{
    "AssetNumber": "A10003",
    "AssetName": "Chiller - 1",
    "Make": "",
    "Model": "",
    "Year": null,
    "Notes": "",
    "ESN": "11321654879"
    "PrimaryGroupId": "G10001",
    "PrimaryGroupName": "East coast fleet"
}]
get
https://api.us.vzconnect.com/ast/v1/assets

Response

If the request was successful

 

List active assets in a group

Get all active Assets in Group matching the given groupId. This will include Assets that are in any sub-groups of the given groupId.

Sample request:

GET /v1/assets/group/G10001

Sample responses:

200
[]
        
200
[{
    "AssetNumber": "A10002",
    "AssetName": "Flatbed - 2",
    "Make": "Hino",
    "Model": "FM1J",
    "Year": 2006,
    "Notes": "Requires Service"
    "ESN": "6598654587987",
    "PrimaryGroupId": "G10001",
    "PrimaryGroupName": "East coast fleet"
},{
    "AssetNumber": "A10003",
    "AssetName": "Chiller - 1",
    "Make": "",
    "Model": "",
    "Year": null,
    "Notes": "",
    "ESN": "11321654879"
    "PrimaryGroupId": "G10001",
    "PrimaryGroupName": "East coast fleet"
}]

404
{
    "Message": "The GroupId was not found G99999",
}
get
https://api.us.vzconnect.com/ast/v1/assets/group/{groupId}

Path Parameters

groupIdstringrequired

The GroupId that identifies the group for which all Assets should be retrieved. Should not be null or empty and should be no more than 45 characters long

Response

If the request was successful

 

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