Assets
Complete reference for assets: queries, mutations, and types for the trackable business objects your workspace monitors and manages.
Assets represent any trackable business object - vehicles, equipment, personnel, or any other entity you need to monitor and manage.
Queries
assetTypes
Lists asset types in the caller's workspace.
assetTypes(
filter: CatalogItemFilter
first: Int
after: String
last: Int
before: String
orderBy: CatalogItemOrder = { field: ORDER, direction: ASC }
): AssetTypeConnection!Arguments
filter
CatalogItemFilter
Filtering options for the returned asset types.
orderBy
CatalogItemOrder
The ordering options for the returned asset types.
Input types:
Output types:
asset (query)
Retrieves an asset by its ID.
Arguments
id
ID!
The ID of the asset to retrieve.
Output types:
assets
Lists assets in the caller's workspace.
Arguments
filter
AssetFilter
Filtering options for the returned assets.
orderBy
AssetOrder
The ordering options for the returned assets.
Input types:
Output types:
Mutations
assetCreate
Creates a new asset.
Arguments
input
AssetCreateInput!
The input fields for creating the asset.
Input types:
Output types:
assetUpdate
Updates an existing asset.
Arguments
input
AssetUpdateInput!
The input fields for updating the asset.
Input types:
Output types:
assetDelete
Deletes an asset.
Refused with IN_USE while another live entity points at it through one of its own fields, custom-field values and field definitions included; the error's blockers name the first five of them, and hasMoreBlockers says whether it left any out.
Arguments
input
AssetDeleteInput!
The input fields for deleting the asset.
Input types:
Output types:
assetTypeCreate
Creates a new asset type.
Arguments
input
AssetTypeCreateInput!
The input fields for creating the asset type.
Input types:
Output types:
assetTypeUpdate
Updates an asset type.
Arguments
input
AssetTypeUpdateInput!
The input fields for updating the asset type.
Input types:
Output types:
assetTypeDelete
Deletes an asset type.
Refused with IN_USE while another live entity points at it through one of its own fields, custom-field values and field definitions included; the error's blockers name the first five of them, and hasMoreBlockers says whether it left any out.
Arguments
input
CatalogItemDeleteInput!
The input fields for deleting the asset type.
Input types:
Output types:
Objects
AssetType
A classification type for assets.
Implements: CatalogItem, Node, Versioned, Titled
id
ID!
A globally unique identifier.
version
Int!
The version number for optimistic locking.
title
String!
The human-readable display name. Can be localized.
code
Code!
A machine-readable code, unique within the catalog for a given workspace. A workspace item may reuse the code of the system item it overrides.
order
Int!
The display order within the same level or category.
customFieldDefinitions
Custom field definitions specific to this asset type, ordered by display order.
Asset
A physical or logical asset being tracked.
Implements: Node, Titled, Customizable, Versioned
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
version
Int!
The version number for optimistic locking. Incremented on each update. Can be provided in update/delete mutations to prevent lost updates. If omitted, the update proceeds without stale-read protection.
title
String!
The human-readable display name.
customFields
[CustomFieldValue!]!
Typed custom field values, one entry per set field code. Each element is a concrete CustomFieldValue implementation matching the field's FieldType — select fields via inline fragments. The system-reserved code geojson_data is excluded — it is exposed through GeoObject.geojsonData instead.
Arguments of customFields
Arguments of groups
orderBy
The ordering options for the returned groups. Default: { field: TITLE, direction: ASC }.
AssetPayload
The result of an asset mutation.
AssetTypePayload
The result of an asset type mutation.
Inputs
AssetFilter
Filtering options for assets.
typeIds
[ID!]
Filter by asset types (OR within field).
deviceIds
[ID!]
Filter by linked devices (OR within field).
titleContains
String
Partial match on title (case-insensitive contains).
customFields
Filter by custom field values. Unlike the ID list filters above, the conditions in this list combine with AND: an asset must satisfy every one of them. See CustomFieldFilter for how a single condition matches.
AssetOrder
Ordering options for assets.
customFieldCode
The custom field code to order by. Mutually exclusive with field. Supported field types: STRING, DECIMAL, INTEGER, DATE, DATETIME, and the reference types DEVICE and single-value REFERENCE, which sort by the title of the entity they point at rather than by the stored id. TEXT, OPTIONS, BOOLEAN and GEOJSON are not supported for sorting, nor is a multi-value REFERENCE or a REFERENCE at an entity with no title.
AssetCreateInput
Input for creating a new asset.
typeId
ID!
The asset type ID.
title
String!
The asset display name.
AssetUpdateInput
Input for updating an existing asset.
id
ID!
The asset ID to update.
version
Int
The current version for optimistic locking. If omitted, auto-increments without conflict check.
title
String
The new display name.
AssetDeleteInput
Input for deleting an asset.
id
ID!
The asset ID to delete.
version
Int
The current version for optimistic locking. If omitted, auto-increments without conflict check.
AssetTypeCreateInput
Input for creating an asset type.
title
String!
The display name.
order
Int
The display order. Auto-calculated as last position if omitted.
customFieldDefinitions
Operations on custom field definitions for this asset type. Only create is allowed when creating a new catalog item.
AssetTypeUpdateInput
Input for updating an asset type.
id
ID!
The item ID to update.
version
Int
The current version for optimistic locking. If omitted, auto-increments without conflict check.
title
String
The new display name.
order
Int
The new display order.
customFieldDefinitions
Operations on custom field definitions belonging to this asset type.
Enums
AssetOrderField
Fields available for ordering assets.
TITLE
Order by title.
Pagination types
AssetConnection
A paginated list of Asset items.
Implements: Connection
AssetEdge
An edge in the Asset connection.
Implements: Edge
cursor
String!
An opaque cursor for this edge.
AssetTypeConnection
A paginated list of AssetType items.
Implements: Connection
AssetTypeEdge
An edge in the AssetType connection.
Implements: Edge
cursor
String!
An opaque cursor for this edge.
See also
Last updated
Was this helpful?