Skip to main content

AssetTypeModel

Asset type profile.

Breaking Changes

No breaking changes.

Examples

Fill this template out with real values.

{
"deleted": "Boolean",
"id": "Integer",
"is_default": "Boolean",
"location_id": "Integer",
"name": "String",
"quantity": "Integer",
"require_numbers": "Boolean",
"valid_trucks": "array[asset_type.truck_id]",
"weight": "Float"
}

Fields

deleted Boolean, Required

Is record deleted (soft delete).

  • One of 0, 1, True, False (case insensitive).

id Integer, Required

Asset type identifier.


is_default Boolean, Required

Is asset the default asset.

  • One of 0, 1, True, False (case insensitive).

location_id Integer, Required

Location identifier.


name String, Required

Name (free text).

  • At least 1 and no more than 64 characters.

quantity Integer, Required

Asset type quantity.

  • Greater than or equal to 0.

require_numbers Boolean, Required

Require asset numbers.

  • One of 0, 1, True, False (case insensitive).

valid_trucks Array[asset_type.truck_id], Required

asset_type.truck_id Integer

Truck identifier.


weight Float, Required

  • Greater than or equal to 0.