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.
assetCreate
Creates a new asset.
assetCreate(
input: AssetCreateInput!
): AssetPayloadArguments
input
AssetCreateInput!
The input fields for creating the asset.
Input types:
AssetCreateInput
Input for creating a new asset.
organizationId
ID!
The organization that will own the asset.
typeId
ID!
The asset type ID.
title
String!
The asset display name.
CustomFieldsPatchInput
Input for updating custom field values using a patch model.
set
JSON
Fields to set or update as a key-value map.
unset
[Code!]
Field codes to remove.
Output types:
Asset (entity)
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. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
customFields
JSON!
Custom field values as a key-value map. Keys are CustomFieldDefinition codes.
device
The primary tracking device linked to this asset. This is an alias for the device custom field.
assetUpdate
Updates an existing asset.
Arguments
input
AssetUpdateInput!
The input fields for updating the asset.
Input types:
AssetUpdateInput
Input for updating an existing asset.
id
ID!
The asset ID to update.
version
Int!
The current version for optimistic locking.
title
String
The new display name.
CustomFieldsPatchInput
Input for updating custom field values using a patch model.
set
JSON
Fields to set or update as a key-value map.
unset
[Code!]
Field codes to remove.
Output types:
Asset (entity)
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. Must be provided in update/delete mutations to prevent lost updates.
title
String!
The human-readable display name.
customFields
JSON!
Custom field values as a key-value map. Keys are CustomFieldDefinition codes.
device
The primary tracking device linked to this asset. This is an alias for the device custom field.
assetDelete
Deletes an asset.
Arguments
input
AssetDeleteInput!
The input fields for deleting the asset.
Input types:
AssetDeleteInput
Input for deleting an asset.
id
ID!
The asset 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.
assetTypeCreate
Creates a new asset type.
Arguments
input
AssetTypeCreateInput!
The input fields for creating the asset type.
Input types:
AssetTypeCreateInput
Input for creating an asset 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:
AssetType (entity)
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 scope.
order
Int!
The display order within the same level or category.
customFieldDefinitions
Custom field definitions specific to this asset type, ordered by display order.
assetTypeUpdate
Updates an asset type.
Arguments
input
AssetTypeUpdateInput!
The input fields for updating the asset type.
Input types:
AssetTypeUpdateInput
Input for updating an asset 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:
AssetType (entity)
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 scope.
order
Int!
The display order within the same level or category.
customFieldDefinitions
Custom field definitions specific to this asset type, ordered by display order.
assetTypeDelete
Deletes an asset type.
Arguments
input
CatalogItemDeleteInput!
The input fields for deleting the asset 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.
Last updated
Was this helpful?