Skip to main content

Asset Types and Assets

Assets in the Registry refers to physical objects with which a person would interact. In most cases this would be a exact piece of equipment with its own unique serial or identification number unique that single piece of equipment. Assets are only differentiated by the serial number of the asset. The level of specificity above the asset is the Asset Type.

Asset Types are the specific type of the asset. It consists of the brand, model, and if relevant the version of the asset.

The main information that is required for an asset type and asset are:

  • Asset Type:
    • Brand: The brand of the asset.
    • Model: The model number of the asset.
  • Asset:
    • Serial Number: The serial number of the asset.

There is more information that can be added to the asset type and asset, but these are the main things that are required.

In order to add an Asset to the registry, you must first add an Asset Type.

NOTE: Both Assets and Asset Types can have external identifiers added onto them. This is useful for linking the assets and asset types to your external system. Please see the External Identifiers section for more information.

Asset Types

An organization in the Registry can contain the following information:

ContentField NameMandatoryDescription
BrandbrandYESThe brand of the asset type
ModelmodelYESThe model number or string of the asset type
VersionversionNOThe potential version of the model
Emission Classemission_classNOThe potential emission class of the asset type, avoid populating data in this field
DocumentsdocumentsNOA list of document objects associated with the asset type.
Thumbnail DocumentthumbnailNOA thumbnail image, as a document object, that can be added to the asset type that will visualize the asset type in our system, unless agreed upon this field can be disregarded
Thumbnail Document Idthumbnail_document_idNOAn ID referring to the document of type image that is desired to be used as a thumbnail for the asset type in our system, unless agreed upon this field can be disregarded

The regular CRUD operations are avaible for asset types. In addition to this there is a GET /asset_types/by_brand_and_model endpoint that allows you to search for asset types by brand, model, and the version number. In addition there are endpoints for adding general documents to the asset types and the thumbnail to the asset type.

Please refer to the Swagger documentation for more specific information:

Assets

After the asset type has been added to the registry, you can then add an asset. The asset is the specific instance of the asset type. The asset is differentiated by the serial number of the asset.

An asset in the Registry can contain the following information:

ContentField NameMandatoryDescription
Serial Numberserial_numberYESThe serial number of the asset
Asset Type IDasset_type_idYESThe ID of the asset type of the asset
Production Yearproduction_yearNOThe year the asset was produced as a 4 digit number
StatusstatusNOA string containing the status of the equipment in any format desired
Responsible Personresponsible_person_idNOThe interal Registry id of the responsible person of the asset, if relevant

The regular CRUD operations are avaible for assets. In addition to this there is a POST /assets/find endpoint that allows you to search for assets by:

  • serial number
  • brand
  • model
  • version

If the query parameter create is set to true and the asset is not found in the database, the asset will be created.

Please refer to the Swagger documentation for more specific information:

Example: Adding an Asset Type and Asset

Let us assume that an external company has a piece of equipment Manitou TJ280 with a specific serial number and wants to add it to the registry.

Asset and Asset Type Information

NameContent
BrandManitou
ModelTJ280
Version5
Serial NumberTJ280M123456
Production Year2015

Creating the Asset Type

The first step is to create the asset type for the Manitou TJ280. Firstly, check if the asset type already exists in the registr via GET /asset_types/. If not, creatng the asset type can be done by the POST /asset_types endpoint with the following JSON body:

{
"brand": "Manitou",
"model": "TJ280",
"version": "5",
}

Once the asset type has been created, the asset can be added to the registry. Make note of the id of the asset type that was created. For this example, let's assume response returned was the following with the following UUID ID:

{
"id": "f1b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b",
"brand": "Manitou",
"model": "TJ280",
"version": "5",
...
}

Creating the Asset

The asset can be added to the registry by the POST /assets endpoint with the following JSON body:

{
"serial_number": "TJ280M123456",
"production_year": 2015,
"asset_type_id": "f1b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b",
}

Once the asset has been created, make note of the id of the asset that was created. For this example, let's assume response returned was the following with the following UUID ID:

{
"id": "e7ffc125-18cf-46c0-852d-955fbfe733fb",
"serial_number": "TJ280M123456",
"production_year": 2015,
"asset_type_id": "f1b3b3b3-3b3b-3b3b-3b3b-3b3b3b3b3b3b",
...
}