Custom Fields API - Introduction

With our Custom Fields offering, Trackunit Iris can host all the data that you need. Custom Fields will enable you to capture and organize additional metadata that holds significant contextual value, thereby facilitating more robust data categorization and retrieval processes for you and your end-customers.

Additional standard fields for commom metadata

Trackunit provides a number of standard fields for common metadata, that can be used by all customers to extend the available data model.

Field nameDescriptionType (UoM)Related domain
AC Input VoltageThe input voltage of an alternating current input, could either be to operate directly or to charge a battery.text (V)asset
Engine manufaturerThe manufaturer of the engine.dropdown, single-selectasset
Engine modelThe model of the engine.textasset
Engine serial numberThe serial number of the engine.textasset
Engine fuel typeThe fuel type the main combustion engine consumes.dropdown, single-select (Diesel, Petrol, CNG, LPG, HVO100, Hydrogen, Bio-diesel)asset
Fuel tank capacity (total)The total fuel capacity, summed over all tanks.number (L / US Liquid Gallon)asset
Rated battery voltageThe rated voltage of the traction battery.text (V)asset
Rated combustion engine powerPower output of engine in kilo-Wattstext (kW)asset
Rated electric motor powerPower output of the electric motor in kilo-Wattstext (kW)asset
Total rated battery capacityTotal rated capacity summed (only if batteries in parallel) over all traction batteries, in ampere-hours.text (Ah)asset
Total rated battery power capacityTotal rated energy capacity summed over all traction batteries, in kilo-watt-hourstext (kWh)asset
Warranty end dateThe end date of the asset's warranty.dateasset

How to set values on standard fields

  1. Use the Custom Fields Values API to get all available fields. Specify the entityId for your query, which is an assetId for any fields listed above.
  2. Use the Create, Update or Delete value endpoints for any futher operations on the available fields.

Define your own custom fields

Custom fields provide a way to define new fields in the Trackunit data model. Allowing to extend and customize Trackunit Manager. Currently we support extending the data model of assets, accounts, groups, sites, customers and rental contracts with new fields.

📘

Subscription requirement

IrisX is required to create and change custom field definitions. Learn more about the IrisX subscription

Get started with creating custom fields

  1. To define a custom field, you first need to add a definition using the API.
  2. Use the Custom Fields Values API to set values on your defined custom fields. Specify the entityId for your query. Depending on which domain type you are interested in, this can be an assetId, accountId, groupId, siteId, customerId or rentalContractId.

Changing custom field definitions

When changing custom field definitions, you need to follow the following general rules and type-specific rules:

General rules

  • You cannot change a Custom Field Definition type after creation (e.g., changing a string field to a number field).
  • The Definition key (if specified) must be unique (within your account).

Type rules

Each field type has special rules:

  • Drop-down:

    • If an option is removed from a drop-down list, you must provide a valid replacement value.
    • Any existing value that contains the deleted value will be changed to the replacement value.
    • If the replacement value is already selected, a duplicate value will not be created.
    • When changing a multi-select field to a single-select field, any value with more than one option will be cleared.
    • The existing value will be saved for retrieval in the API in the lastIncompatibleValue field.
  • Number

    • Any existing value outside the new min/max range will be set to null.
    • The existing value will be saved for retrieval in the API in the lastIncompatibleValue field.
  • String

    • If an existing value is longer than the new maximum length, the value will be truncated.

    • The existing value will be saved for retrieval in the API in the lastIncompatibleValue field.

    • Regex patterns can be changed, but be warned that existing data can become uncompliant with the new pattern.