For the complete documentation index, see llms.txt. This page is also available as Markdown.
OverviewBeta

Business Data Repository overview

Business Data Repository stores the business data of a workspace: assets, devices, geo objects, schedules, and your own fields and lists.

Business Data Repository is the product that stores the business data of your workspace: what you track, the devices that report on it, the places that matter to it, and its working hours. It's one of the products served by Navixy GraphQL API. A GPS device reports where it is, but it doesn't know that it's fitted to a refrigerated van or which depot the van returns to. Business Data Repository keeps these facts, so the data from your devices is about your vehicles, people, and places. This documentation is for Navixy users who call the API for their own workspace to create and change this data or to read it into their own systems.

All Business Data Repository queries are nested under the bdr field of the Query type and Business Data Repository mutations under the bdr field of the Mutation type. Authentication, pagination, and error handling work the same way for every product of Navixy GraphQL API, so see Authentication, Pagination, and Error handling to learn that. For the endpoint and request headers, see Getting started.

In Location Intelligence, the same data appears on the Assets, Geo objects, and Schedules screens, and devices appear in Device Management. The API keeps devices and inventories in Business Data Repository too, so one product serves all of them here.

Purpose and capabilities

Business Data Repository API enables you to:

  • Describe the vehicles, people, and equipment you track as assets, sort them by asset type, and gather them into asset groups

  • Register GPS devices with their hardware identifiers, keep them in inventories, and assign them to assets

  • Mark places, areas, and routes as geo objects, with their shapes in GeoJSON

  • Describe working hours, service windows, and other repeating times as schedules

  • Add fields of your own to asset types and geo object types

  • Keep your own lists and tags, and pick values from them in your fields

  • See who created, changed, or deleted a record, and when, in the audit log

Your access token names one workspace, and every operation acts in it. No operation takes a workspace ID, so a request can't read or change the data of another workspace.

Key concepts

Term
Definition

Workspace

The space that holds the business data of one customer. Navixy Console creates workspaces, so they are read-only in this API.

Asset

Something your business tracks, such as a vehicle, a trailer, a person, or a container. It gets its position and readings from the devices assigned to it.

Asset type

The template an asset is based on, such as Vehicle or Generator. It decides which fields the asset has. A new workspace starts with three preset asset types: Vehicle, Workforce, and Cargo.

Asset group

A set of assets you handle together, such as the vans of one depot. An asset has exactly one type and can be in any number of groups.

Custom field

A field of your own on an asset type or a geo object type, such as a license plate or an opening time. Every asset or geo object of that type has it. A field can hold text, a number, yes or no, a date or a date and time, a shape, a value from one of your lists, or a link to a device, a schedule, or another record.

Device

A GPS tracker, sensor, or beacon, known by its hardware identifiers, such as an IMEI. You assign a device to an asset through a device field of its asset type. A device can be assigned to one asset at a time, and one asset can have several devices.

Inventory

A stock of devices, such as a warehouse. It records which devices it holds, and each device keeps the history of the inventories it was assigned to.

Geo object

A place, an area, or a route on the map, such as a depot, a customer site, or a delivery zone. Its shape is stored as GeoJSON. Like an asset, it's based on a type that decides its fields.

Schedule

When something happens and how often it repeats, such as a depot's opening hours or a team's shift. Its format is compatible with iCalendar. One schedule can be assigned to any number of assets and geo objects.

Catalog

A list of values, such as your asset types, the device models, or your tags. Navixy provides the system catalogs, and you can create your own.

Member

A person who works in the workspace.

Integration

An external system with its own access to the API, such as your ERP.

Audit event

A record of one change: who made it, what changed, and when.

How the data fits together

Assets are at the center. Devices, geo objects, and schedules are assigned to assets through the fields of their asset type.

  1. Navixy Console creates the workspace. When Console activates it, Business Data Repository creates the three preset asset types.

  2. You choose or create the asset types you need and add your own fields to them. You create geo object types the same way.

  3. You register devices and assign them to assets. From then on, Tracking follows each asset through its devices.

  4. You create geo objects and schedules and assign them to assets through their fields. A geo object can have a schedule too, such as a depot's opening hours.

  5. Business Data Repository records who creates, changes, or deletes a record, and when, in the audit log. Some changes, such as adding an asset to a group, aren't recorded. To learn what is recorded, see Which entities are audited.

Who does what

Three parties share the work on the business data of a workspace:

Who
Does

You

Create and change assets and their types and groups, devices and inventories, geo objects, schedules, and lists. Read the audit log. Every call reads or changes the data of the workspace named by the token.

Navixy Console

Creates the workspace and decides which products it runs. Business Data Repository shows the workspace but can't change it.

Tracking

Reads the assets and their devices to show live positions, trips, and stops.

Business Data Repository stores schedules but doesn't act on them. What a schedule means, such as whether a vehicle may move outside a shift, is up to the product that reads it.

A record that other records point at can't be deleted. The link can be one of their own fields, such as the type of an asset or the inventory of a device. It can also be a custom field value, such as an asset that names a schedule, or a custom field definition that names the record. In a workspace that has IoT Logic, a device also can't be deleted while a flow lists it, whether the flow is enabled or not. The delete is refused with IN_USE, and the error names the records to change first. When a device is deleted, the custom fields that don't require a device lose it; a field that requires one refuses the delete instead.

The Business Data Repository documentation has eight guides and an API reference with one page per topic.

The guides cover the tasks that you can do with the Business Data Repository API for your workspace:

The Business Data Repository API reference documents the operations and types, one page per topic:

  • Workspaces: Your workspace.

  • Users: The caller, through the me query, and the catalog items that users define.

  • Devices: Devices, their identifiers, the device catalogs, and inventories.

  • Assets: Assets, asset types, and asset groups.

  • Geo objects: Geo objects and their types.

  • Schedules: Schedules and their calendar format.

  • Custom fields: Field definitions, the field types, and the values they hold.

  • Audit: Audit events and the queries that read them.

  • Catalogs: Catalogs and their items, tags, and the system catalogs.

For the types that Business Data Repository shares with the other products and for an index of the whole API, see Core API reference.

Last updated

Was this helpful?