Mutations
Navixy Repository API is a work in progress. This documentation is published for preview purposes only and doesn't reflect a stable release. Structure, field names, and behaviors are subject to change.
deviceCreate
Creates a new device.
deviceCreate(
input: DeviceCreateInput!
): DevicePayloadArguments
input
DeviceCreateInput!
The input fields for creating the device.
Input types:
DeviceCreateInput
Input for creating a new device.
organizationId
ID!
The organization that will own the device.
typeId
ID!
The device type ID.
modelId
ID!
The device model ID.
statusId
ID!
The initial device status ID.
title
String!
The device display name.
DeviceIdentifierInput
Input for a device identifier.
value
String!
The identifier value.
namespace
Code
The namespace for uniqueness scope. Null means globally unique.
Output types:
Device (entity)
A tracking device such as a GPS tracker, sensor, or beacon.
Implements: Node, Titled, Versioned, InventoryItem
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. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
identifiers
[DeviceIdentifier!]!
The hardware identifiers for this device (IMEI, serial number, MAC address, etc.).
inventoryHistory
The history of inventory assignments for this device.
deviceUpdate
Updates an existing device.
Arguments
input
DeviceUpdateInput!
The input fields for updating the device.
Input types:
DeviceUpdateInput
Input for updating an existing device.
id
ID!
The device ID to update.
version
Int!
The current version for optimistic locking.
modelId
ID
The new device model.
statusId
ID
The new device status.
title
String
The new display name.
Output types:
Device (entity)
A tracking device such as a GPS tracker, sensor, or beacon.
Implements: Node, Titled, Versioned, InventoryItem
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. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
identifiers
[DeviceIdentifier!]!
The hardware identifiers for this device (IMEI, serial number, MAC address, etc.).
inventoryHistory
The history of inventory assignments for this device.
deviceDelete
Deletes a device.
Arguments
input
DeviceDeleteInput!
The input fields for deleting the device.
Input types:
DeviceDeleteInput
Input for deleting a device.
id
ID!
The device ID to delete.
version
Int!
The current version for optimistic locking.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
deviceIdentifierAdd
Adds an identifier to a device.
Arguments
input
DeviceIdentifierAddInput!
The input fields for adding the identifier.
Input types:
DeviceIdentifierAddInput
Input for adding an identifier to a device.
deviceId
ID!
The device ID.
DeviceIdentifierInput
Input for a device identifier.
value
String!
The identifier value.
namespace
Code
The namespace for uniqueness scope. Null means globally unique.
Output types:
DeviceIdentifier (entity)
A hardware identifier for a device.
Implements: Node
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
value
String!
The identifier value.
namespace
Code
The namespace for uniqueness scope. Null means the identifier is globally unique.
deviceIdentifierRemove
Removes an identifier from a device.
Arguments
input
DeviceIdentifierRemoveInput!
The input fields for removing the identifier.
Input types:
DeviceIdentifierRemoveInput
Input for removing an identifier from a device.
identifierId
ID!
The identifier ID to remove.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
deviceRelationCreate
Creates a relationship between devices.
Arguments
input
DeviceRelationCreateInput!
The input fields for creating the relationship.
Input types:
DeviceRelationCreateInput
Input for creating a relationship between devices.
firstId
ID!
The first device ID.
secondId
ID!
The second device ID.
typeId
ID!
The relationship type ID.
Output types:
DeviceRelation (entity)
A relationship between two devices.
Implements: Node
id
ID!
A globally unique identifier. This ID is opaque and should not be parsed by clients.
deviceRelationRemove
Removes a device relationship.
Arguments
input
DeviceRelationRemoveInput!
The input fields for removing the relationship.
Input types:
DeviceRelationRemoveInput
Input for removing a device relationship.
id
ID!
The relationship ID to remove.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
deviceTypeCreate
Creates a new device type.
Arguments
input
DeviceTypeCreateInput!
The input fields for creating the device type.
Input types:
DeviceTypeCreateInput
Input for creating a device type.
organizationId
ID!
The organization that will own the item.
code
Code!
The machine-readable code.
title
String!
The display name.
order
Int
The display order.
CatalogItemMetaInput
Display properties for catalog items.
description
String
The description.
hidden
Boolean
Whether the item is hidden from regular UI lists.
textColor
HexColorCode
The text color for UI display.
backgroundColor
HexColorCode
The background color for UI display.
icon
String
A relative URL to the icon.
Output types:
DeviceType (entity)
A classification type for devices.
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 scope.
order
Int!
The display order within the same level or category.
customFieldDefinitions
Custom field definitions specific to this device type, ordered by display order.
deviceTypeUpdate
Updates a device type.
Arguments
input
DeviceTypeUpdateInput!
The input fields for updating the device type.
Input types:
DeviceTypeUpdateInput
Input for updating a device type.
id
ID!
The item ID to update.
version
Int!
The current version for optimistic locking.
title
String
The new display name.
order
Int
The new display order.
CatalogItemMetaInput
Display properties for catalog items.
description
String
The description.
hidden
Boolean
Whether the item is hidden from regular UI lists.
textColor
HexColorCode
The text color for UI display.
backgroundColor
HexColorCode
The background color for UI display.
icon
String
A relative URL to the icon.
Output types:
DeviceType (entity)
A classification type for devices.
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 scope.
order
Int!
The display order within the same level or category.
customFieldDefinitions
Custom field definitions specific to this device type, ordered by display order.
deviceTypeDelete
Deletes a device type.
Arguments
input
CatalogItemDeleteInput!
The input fields for deleting the device type.
Input types:
CatalogItemDeleteInput
Input for deleting a catalog item.
id
ID!
The catalog item ID to delete.
version
Int!
The current version for optimistic locking.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
deviceStatusCreate
Creates a new device status.
Arguments
input
DeviceStatusCreateInput!
The input fields for creating the device status.
Input types:
DeviceStatusCreateInput
Input for creating a device status.
organizationId
ID!
The organization that will own the item.
code
Code!
The machine-readable code.
title
String!
The display name.
order
Int
The display order.
CatalogItemMetaInput
Display properties for catalog items.
description
String
The description.
hidden
Boolean
Whether the item is hidden from regular UI lists.
textColor
HexColorCode
The text color for UI display.
backgroundColor
HexColorCode
The background color for UI display.
icon
String
A relative URL to the icon.
Output types:
DeviceStatus (entity)
An operational status for devices.
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 scope.
order
Int!
The display order within the same level or category.
deviceStatusUpdate
Updates a device status.
Arguments
input
DeviceStatusUpdateInput!
The input fields for updating the device status.
Input types:
DeviceStatusUpdateInput
Input for updating a device status.
id
ID!
The item ID to update.
version
Int!
The current version for optimistic locking.
title
String
The new display name.
order
Int
The new display order.
CatalogItemMetaInput
Display properties for catalog items.
description
String
The description.
hidden
Boolean
Whether the item is hidden from regular UI lists.
textColor
HexColorCode
The text color for UI display.
backgroundColor
HexColorCode
The background color for UI display.
icon
String
A relative URL to the icon.
Output types:
DeviceStatus (entity)
An operational status for devices.
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 scope.
order
Int!
The display order within the same level or category.
deviceStatusDelete
Deletes a device status.
Arguments
input
CatalogItemDeleteInput!
The input fields for deleting the device status.
Input types:
CatalogItemDeleteInput
Input for deleting a catalog item.
id
ID!
The catalog item ID to delete.
version
Int!
The current version for optimistic locking.
Output types:
DeletePayload
The result of a delete mutation.
deletedId
ID!
The ID of the deleted entity.
Last updated
Was this helpful?