Skip to main content

GraphQL reference: device-management

Generated from the schema this service serves, so it cannot fall behind it. The same schema is published as a file for tools and agents.

Endpointhttps://<your-host>/api/device-management/graphql
Auth planetenant — The ordinary application plane. Obtain a tenant access token by calling login then selectTenant on user-management, and authorize each call with the capability it names (for example device:write).
Authorize withtenant access token
Schema file/schema/device-management.graphql
Described3067 of 3067 elements

Queries​

activeAssetTypeVersion · activeProfileRules · agentProposal · agentProposals · alarmCountsByDeviceType · alarmCountsBySeverity · alarmDispositions · alarmLifecycles · alarmSuppressionStatus · alarmSuppressionWindows · alarmSuppressionWindowsByToken · alarmSuppressionsForDevice · alarms · alarmsById · alarmsByToken · anchorDevices · areaTypes · areaTypesById · areaTypesByToken · areas · areasById · areasByToken · assetAncestors · assetChildren · assetParent · assetTypeVersions · assetTypes · assetTypesById · assetTypesByToken · assets · assetsById · assetsByToken · auditEvents · authenticateCommandChannel · automationReview · automationReviewBreakGlass · automationReviewPolicy · automationReviews · brokerAssertedDeviceDecoder · bulkChange · bulkChangeLines · bulkChangeReadiness · bulkChanges · calculatedBackfillRoster · calculatedMetricPlan · checkDeviceCredential · commandDefinitions · commandDefinitionsById · commandDefinitionsByToken · commandDispatchSchedule · commandPullDevices · currentFenceSetVersion · currentGeoFenceSet · currentGeoFenceSetManifest · customerDevices · customerTypes · customerTypesById · customerTypesByToken · customers · customersById · customersByToken · detectionRules · detectionRulesById · detectionRulesByToken · deviceClaim · deviceCommandVocabulary · deviceConfiguration · deviceConfigurationRevisions · deviceConstantsPage · deviceCredentials · deviceCredentialsById · deviceCredentialsByToken · deviceDecoder · deviceLocationDeclaration · deviceMetricVocabulary · deviceProfileVersions · deviceProfiles · deviceProfilesById · deviceProfilesByToken · deviceReplacements · deviceRevokedCertificates · deviceRosterPage · deviceScopeAnchors · deviceThresholdAttributePage · deviceTrustAnchors · deviceTrustAnchorsById · deviceTrustAnchorsByToken · deviceTypes · deviceTypesById · deviceTypesByToken · devices · devicesByExternalId · devicesById · devicesByToken · disabledDevicePage · entityAttributes · entityGroupVersions · entityGroups · entityGroupsById · entityGroupsByToken · entityRelationshipTypes · entityRelationshipTypesById · entityRelationshipTypesByToken · entityRelationships · entityRelationshipsById · entityRelationshipsByToken · existingEntityRefs · facetKeys · facetValues · fleetOperationReadiness · geoFenceGeometry · geoFenceSetManifest · geoFenceSetSnapshot · geoFences · geoFencesById · geoFencesByToken · integration · integrationAuth · integrationDecoder · integrations · maintenanceWindowOpening · maintenanceWindows · maintenanceWindowsById · maintenanceWindowsByToken · metricDefinitions · metricDefinitionsById · metricDefinitionsByToken · payloadDecoderFunctions · payloadDecoderHealth · payloadDecoderSamples · planBulkChange · previewBulkChangeResume · previewBulkChangeReversal · previewSelector · provisioningProfiles · provisioningProfilesById · provisioningProfilesByToken · resolveDeviceGroupTargets · semanticContext · testMetricFormula · testPayloadDecoder · unregisteredIntegrationDevices · validateCommandEnqueue · validateCommandEnqueueBatch

activeAssetTypeVersion​

The version that assets of this type are currently validated against, or null when the type has never been published. Requires device:read.

Returns AssetTypeVersion

ArgumentTypeDescription
tokenString!Token of the asset type.

activeProfileRules​

Detection-engine reconcile read. One page of the tenant's published profiles, each with its active version, when that version became active and its enabled detection rules. The engine reads the reconcile queries when it takes the detection partition and every five minutes after, and corrects whatever differs, so a rule, device or attribute change whose notification was lost still reaches detection. A keyset page: pass the previous page's nextCursor as afterId, and stop when it is null. A limit outside 1 to the maximum is refused. A profile whose frozen snapshot cannot be read fails the whole page rather than answering with no rules. Requires device:read.

Returns ActiveProfileRulesPage!

ArgumentTypeDescription
afterIdStringThe nextCursor of the previous page; omit for the first page.
limitInt!Page size, from 1 to the maximum the query allows; a value outside that range is refused.

agentProposal​

(Preview: may change in a minor release.) One agent proposal by token, under the same rules as agentProposals. A token that names no proposal the caller may see fails with NOT_FOUND.

Returns AgentProposal!

ArgumentTypeDescription
tokenString!(Preview: may change in a minor release.) The proposal's token.

agentProposals​

(Preview: may change in a minor release.) The tenant's agent proposals, newest first. A person needs alarm:read; an AI agent's token (one holding alarm:propose) sees only its own client's proposals for the person it acts for. A member limited to part of the tenant is refused.

Returns AgentProposalSearchResults!

ArgumentTypeDescription
criteriaAgentProposalSearchCriteria!(Preview: may change in a minor release.) The filters, and the page to return.

alarmCountsByDeviceType​

Counts the alarms matching the criteria per originating device type and severity, in one read, for a view that groups alarms by type. Only alarms on devices the caller can read are counted, so a type's count equals the total of alarms(criteria) filtered to that type. Requires alarm:read.

Returns [AlarmDeviceTypeCount!]!

ArgumentTypeDescription
criteriaAlarmCountCriteria!The facets the counted alarms must match.

alarmCountsBySeverity​

Counts the alarms matching the criteria per severity, in one read. With no deviceType every alarm alarms(criteria) would return is counted, whatever its originator (a device, an asset, an area, a customer or a group), so the counts sum to its total. With a deviceType only the alarms on devices of that type are counted, as alarms(criteria) filtered to that type returns them; an unknown type counts nothing. A severity with no alarm is absent. Requires alarm:read.

Returns [AlarmSeverityCount!]!

ArgumentTypeDescription
criteriaAlarmCountCriteria!The facets the counted alarms must match.
deviceTypeStringOnly alarms on devices of this type, by its token.

alarmDispositions​

Lists alarm disposition labels, newest labelled cycle first: every labelled cycle, including those before an alarm's current one. It is the read a backtest scores a rule against. Requires alarm:read; a member whose access is limited to some customers reads the labels of the cycles raised under its customers.

Returns AlarmDispositionSearchResults!

ArgumentTypeDescription
criteriaAlarmDispositionSearchCriteria!The facets the listed labels must match, and the page to return.

alarmLifecycles​

Service plane. Returns existence and lifecycle state only, including alarms derived from position and alarms whose position classification is pending. Omits unknown tokens. Requires a service token with alarm:read; tenant access tokens are refused.

Returns [AlarmLifecycle!]!

ArgumentTypeDescription
tokens[String!]!The alarm tokens to reconcile, bounded by the batch lookup limit.

alarmSuppressionStatus​

Live suppression for up to two hundred alarm tokens. Requires alarm:read; unknown and hidden alarms are omitted.

Returns [AlarmSuppressionStatus!]!

ArgumentTypeDescription
tokens[String!]!Alarm tokens, at most two hundred.

alarmSuppressionWindows​

List whole visible windows with computed status and target filters. Requires alarm:read.

Returns AlarmSuppressionWindowSearchResults!

ArgumentTypeDescription
criteriaAlarmSuppressionWindowSearchCriteria!Filters and pagination.

alarmSuppressionWindowsByToken​

Read up to one hundred visible windows by token; unknown or hidden tokens are omitted.

Returns [AlarmSuppressionWindow!]!

ArgumentTypeDescription
tokens[String!]!Window tokens.

alarmSuppressionsForDevice​

Preview visible windows matching current device facts and time, ignoring alarm keys and bypass severity.

Returns [AlarmSuppressionWindow!]!

ArgumentTypeDescription
atStringRFC 3339 instant; omit for now.
deviceTokenString!Visible device token.

alarms​

Lists the alarms that match the criteria, one page at a time. Requires alarm:read; a member whose access is limited to some customers sees only the alarms of its own devices.

Returns AlarmSearchResults!

ArgumentTypeDescription
criteriaAlarmSearchCriteria!The facets the listed alarms must match, and the page to return.

alarmsById​

Reads alarms by numeric id. Ids naming no alarm, or an alarm the caller may not see, are omitted. Requires alarm:read.

Returns [Alarm!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the alarms to read.

alarmsByToken​

Reads alarms by token. Tokens naming no alarm, or an alarm the caller may not see, are omitted. Requires alarm:read.

Returns [Alarm!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the alarms to read.

anchorDevices​

Searches the devices on one anchor (a customer, an area or an asset), newest first, one page at a time: the members of a dashboard widget bound to that anchor, as the caller may read them. Every answer, and pagination.totalRecords, counts only the devices the caller can see, never the whole anchor. An anchor that does not exist matches nothing. For a member limited to part of the tenant, a customer anchor must be one that member's access names, or the request is refused with FORBIDDEN; an area or asset that none of the member's devices is on matches nothing; only ownership (tracked) relationships match, so naming a relationshipType is refused as unsupported for scoped access; and any other anchor kind is refused as unsupported for scoped access (FORBIDDEN, reason SCOPE_UNSUPPORTED). Requires device:read.

Returns DeviceSearchResults!

ArgumentTypeDescription
criteriaAnchorDeviceSearchCriteria!The anchor, an optional relationship type and the page to return.

areaTypes​

Lists the area types that match the criteria, one page at a time. Answered to a member limited to part of the tenant too. Requires device:read.

Returns AreaTypeSearchResults!

ArgumentTypeDescription
criteriaAreaTypeSearchCriteria!The facets the listed area types must match, and the page to return.

areaTypesById​

Reads area types by numeric id. Ids naming no area type are omitted. Answered to a member limited to part of the tenant too, since a type is configuration rather than device data. Requires device:read.

Returns [AreaType!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the area types to read.

areaTypesByToken​

Reads area types by token. Tokens naming no area type are omitted. Answered to a member limited to part of the tenant too. Requires device:read.

Returns [AreaType!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the area types to read.

areas​

Lists the areas that match the criteria, one page at a time. Scoped as areasById; pagination counts only the areas the caller reaches. Requires device:read.

Returns AreaSearchResults!

ArgumentTypeDescription
criteriaAreaSearchCriteria!The facets the listed areas must match, and the page to return.

areasById​

Reads areas by numeric id. A member limited to part of the tenant is answered with only the areas one of its visible devices is placed in (over a tracked relationship), their metadata is null for it, and any other id is omitted as if it did not exist. Requires device:read.

Returns [Area!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the areas to read.

areasByToken​

Reads areas by token. Scoped as areasById: an area outside the caller's reach is omitted, never refused. Requires device:read.

Returns [Area!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the areas to read.

assetAncestors​

The path from an asset to its root, nearest ancestor first, which is the order a breadcrumb is built from. Requires device:read.

Returns [Asset!]!

ArgumentTypeDescription
tokenString!Token of the asset whose ancestors to read.

assetChildren​

One page of the assets directly below a parent. Omit parentToken to page the roots of the tree, so a tree browser asks the same question at every level. Requires device:read.

Returns AssetSearchResults!

ArgumentTypeDescription
paginationPaginationInput!The page of children to return.
parentTokenStringToken of the parent asset. Omit to page the roots of the tree.

assetParent​

The asset directly above this one in the hierarchy, or null when it is a root. A root is a normal state, not an error. Requires device:read.

Returns Asset

ArgumentTypeDescription
tokenString!Token of the asset whose parent to read.

assetTypeVersions​

Lists an asset type's published property-contract versions, newest first. At most 1000 per call; limit (at least 1) narrows that and offset (not negative) pages further. Requires device:read.

Returns [AssetTypeVersion!]!

ArgumentTypeDescription
limitIntMost versions to return, at least 1 and at most 1000. Omit for 1000.
offsetIntNumber of versions to skip, not negative. Use with limit to page further.
tokenString!Token of the asset type.

assetTypes​

Lists the asset types that match the criteria, one page at a time. Answered to a member limited to part of the tenant too. Requires device:read.

Returns AssetTypeSearchResults!

ArgumentTypeDescription
criteriaAssetTypeSearchCriteria!The facets the listed asset types must match, and the page to return.

assetTypesById​

Reads asset types by numeric id. Ids naming no asset type are omitted. Answered to a member limited to part of the tenant too, since a type is configuration rather than device data. Requires device:read.

Returns [AssetType!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the asset types to read.

assetTypesByToken​

Reads asset types by token. Tokens naming no asset type are omitted. Answered to a member limited to part of the tenant too. Requires device:read.

Returns [AssetType!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the asset types to read.

assets​

Lists the assets that match the criteria, one page at a time. Scoped as assetsById; pagination counts only the assets the caller reaches. Requires device:read.

Returns AssetSearchResults!

ArgumentTypeDescription
criteriaAssetSearchCriteria!The facets the listed assets must match, and the page to return.

assetsById​

Reads assets by numeric id. A member limited to part of the tenant is answered with only the assets one of its visible devices is assigned to (over a tracked relationship), their metadata and properties are null for it, and any other id is omitted as if it did not exist. Requires device:read.

Returns [Asset!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the assets to read.

assetsByToken​

Reads assets by token. Scoped as assetsById: an asset outside the caller's reach is omitted, never refused. Requires device:read.

Returns [Asset!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the assets to read.

auditEvents​

Queries the audit journal, newest first, one page at a time. Requires audit:read.

Returns AuditEventSearchResults!

ArgumentTypeDescription
criteriaAuditEventSearchCriteria!The facets the listed audit events must match, and the page to return.

authenticateCommandChannel​

Service plane. Proves a device's access token for the HTTP command endpoints and says which device it belongs to. Null when the token is unknown, revoked or expired, or the device is disabled: one answer for all of them. Reads the database on every call, so a revocation takes effect on the next request. Requires a service token with device:read.

Returns CommandChannelAccess

ArgumentTypeDescription
credentialIdString!The device's access token.

automationReview​

(Preview: may change in a minor release.) Read frozen automation evidence. Requires device:read and event:read and an unscoped caller.

Returns AutomationReview

ArgumentTypeDescription
tokenString!(Preview: may change in a minor release.) The review token.

automationReviewBreakGlass​

(Preview: may change in a minor release.) Read at most 200 activation changes made outside review, newest first. Requires device:read and an unscoped caller; an unknown profile returns NOT_FOUND.

Returns [AutomationReviewBreakGlass!]

ArgumentTypeDescription
profileTokenString!(Preview: may change in a minor release.) The profile token.

automationReviewPolicy​

(Preview: may change in a minor release.) Read automation protection settings. Requires device:read and an unscoped caller; an unknown profile returns NOT_FOUND.

Returns AutomationReviewPolicy

ArgumentTypeDescription
profileTokenString!(Preview: may change in a minor release.) The profile token.

automationReviews​

(Preview: may change in a minor release.) List automation reviews. Requires device:read and event:read and an unscoped caller.

Returns AutomationReviewSearchResults

ArgumentTypeDescription
criteriaAutomationReviewSearchCriteria!(Preview: may change in a minor release.) Profile, state, draft matching and paging filters.

brokerAssertedDeviceDecoder​

Service-only: callable with a service token that holds device:read, and refused for any user's access token. The same question as deviceDecoder, for a device that published its own payload on its raw-payload MQTT topic: the platform's broker authenticated the device at connect and confined it to its own topic, so no credential is presented. Null when no device has this token; present: false for a device whose type has no decoder.

Returns DeviceDecoderPlan

ArgumentTypeDescription
deviceTokenString!Token of the device the broker confined the publish to.

bulkChange​

Preview. One bulk change by token. Null when the tenant has none. Needs device:read.

Returns BulkChange

ArgumentTypeDescription
tokenString!Preview. The bulk change's token.

bulkChangeLines​

Preview. The lines of one operation in input order. Needs device:read.

Returns BulkChangeLineSearchResults!

ArgumentTypeDescription
criteriaBulkChangeLineSearchCriteria!Preview. Paging and filters for the lines.
tokenString!Preview. The bulk change's token.

bulkChangeReadiness​

Preview. Report this build's bulk change capabilities and fresh database enforcement and tenant orphan facts. Requires fleet:operate; scoped members are refused. An expensive diagnostic (it counts rows): query it when you need the answer, do not poll it.

Returns BulkChangeReadiness!

bulkChanges​

Preview. Bulk changes, newest first. Needs device:read.

Returns BulkChangeSearchResults!

ArgumentTypeDescription
criteriaBulkChangeSearchCriteria!Preview. Paging and filters.

calculatedBackfillRoster​

One page of EVERY device whose type adopts the profile, in device order, each with when it was created and the numbers its metadata holds under the requested names (a device holding none is still listed). Pass the previous page's nextCursor as afterId and stop when it is null. deviceTokens narrows the walk to those devices, and a token that is not a device of the profile is refused with INVALID_VALUE, naming it. A limit outside 1..500, more than 32 constant names or more than 1000 device tokens is refused with INVALID_VALUE. Requires device:read; customer-scoped callers are refused.

Returns CalculatedBackfillRosterPage!

ArgumentTypeDescription
afterIdStringThe nextCursor of the previous page; omit for the first page.
constantKeys[String!]!The constant names to read, at most 32, each 1 to 64 bytes.
deviceTokens[String!]Only these devices, at most 1000; omit for every device of the profile.
limitInt!Page size, 1 to 500.
profileTokenString!The token of the profile whose devices are walked.

calculatedMetricPlan​

Describes the calculated metrics of one PUBLISHED version of a profile: the measured metrics its formulas may read, each calculated metric with its formula, type, bounds and unit in the order the live resolver evaluates them, and the device constants they read. It is read out of the same compiled plan the resolver runs, so a caller that compiles it gets that plan. A draft is not a version: an unknown profile, a profile never published and a version never published are NOT_FOUND. A plan that cannot be built is an error, never an empty answer. Requires device:read; customer-scoped callers are refused.

Returns CalculatedMetricPlan!

ArgumentTypeDescription
profileTokenString!The token of the profile.
versionIntThe published version number; omit for the active version.

checkDeviceCredential​

Service-only: callable with a service token that holds device:read, and refused for any user's access token. The ingest door's one question about an event's credential: would the credential its body carries authenticate under the device authentication policy the event resolver applies? True when it would (or when the policy asks for none); false only for an authentication failure, with no word on which: an unknown credential, an expired one, a wrong secret, another device's credential and a missing one the policy requires are one answer. A database failure is an error, never false. The caller MUST throttle failures per credential: unlike the resolver's, this verdict reaches the sender.

Returns Boolean!

ArgumentTypeDescription
credentialIdString!The credential id the event presents, or empty.
credentialTypeString!The credential type the event presents (for example MQTT_BASIC), or empty.
deviceString!The device token the event names, or empty.
secretStringThe credential secret the event presents, or null.

commandDefinitions​

Searches the tenant's command definitions, newest first, one page at a time. These are the draft definitions, not a published version. Requires device:read.

Returns CommandDefinitionSearchResults!

ArgumentTypeDescription
criteriaCommandDefinitionSearchCriteria!Filters and the page to return.

commandDefinitionsById​

Returns the command definitions with the given ids. Ids that match nothing are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [CommandDefinition!]!

ArgumentTypeDescription
ids[ID!]!Ids of the command definitions to return.

commandDefinitionsByToken​

Returns the command definitions with the given tokens. Tokens that match nothing are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [CommandDefinition!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the command definitions to return.

commandDispatchSchedule​

Decides, for a command about to be enqueued, which devices must wait for their device type's maintenance window and which are refused because the window opens after the command expires. Only commands whose definition has impact DISRUPTIVE or DESTRUCTIVE, on a type that has a window, are ever held. Devices that do not exist or are disabled are skipped; validateCommandEnqueue decides those. Requires device:read.

Returns CommandDispatchSchedule!

ArgumentTypeDescription
alreadyHeldBooleanTrue when asking about a command that is already waiting for a maintenance window. The answer then follows the device type's window alone: a profile version that now marks the command NORMAL does not make it ungated, so it keeps waiting. Defaults to false.
commandKeyString!Key of the command to send.
deviceTokens[String!]!Tokens of the target devices, at most 2000.
expiresAtStringWhen the command expires, as an RFC 3339 timestamp. Omit it for a command that never expires.

commandPullDevices​

Which of the named devices take their commands over HTTP_PULL: the ones that exist, are enabled, and whose device type has commandChannel HTTP_PULL. A device that does not exist or is disabled is simply absent from the answer. Requires device:read.

Returns [String!]!

ArgumentTypeDescription
deviceTokens[String!]!Tokens of the devices to ask about, at most 2000.

currentFenceSetVersion​

The tenant's active fence-set version: the number stamped onto resolved location events, naming the frozen snapshot of the fences live at that moment. Creating a fence, editing a boundary or deleting a fence mints the next one; renaming a fence or editing its description or metadata does not. 0 means the tenant has never had a fence, which differs from a minted version whose fence set happens to be empty. Requires device:read.

Returns Int!

currentGeoFenceSet​

The frozen fence set of the tenant's current version, with the version and its fences read together so they cannot disagree across a concurrent fence edit. That holds only within one response: to read a multi-page fence set, take page 1 from here and every later page from geoFenceSetSnapshot at the version reported here. Requires device:read.

Returns GeoFenceSetSnapshot!

currentGeoFenceSetManifest​

The manifest of the tenant's current version, with the version and its fences read from one row so they cannot disagree across a concurrent fence edit. Requires device:read.

Returns GeoFenceSetManifest!

customerDevices​

Searches the devices linked to one customer by one relationship type, newest first, one page at a time: the members of a dashboard widget bound to that customer. A customer or relationship type that does not exist matches nothing. For a member limited to part of the tenant, the customer must be one that member's access names, or the request is refused with FORBIDDEN, and only an ownership relationship (a tracked type, such as the default "assigned") matches. Requires device:read.

Returns DeviceSearchResults!

ArgumentTypeDescription
criteriaCustomerDeviceSearchCriteria!The customer, the relationship type and the page to return.

customerTypes​

Lists the customer types that match the criteria, one page at a time. Answered to a member limited to part of the tenant too. Requires device:read.

Returns CustomerTypeSearchResults!

ArgumentTypeDescription
criteriaCustomerTypeSearchCriteria!The facets the listed customer types must match, and the page to return.

customerTypesById​

Reads customer types by numeric id. Ids naming no customer type are omitted. Answered to a member limited to part of the tenant too, since a type is configuration rather than device data. Requires device:read.

Returns [CustomerType!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the customer types to read.

customerTypesByToken​

Reads customer types by token. Tokens naming no customer type are omitted. Answered to a member limited to part of the tenant too. Requires device:read.

Returns [CustomerType!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the customer types to read.

customers​

Lists the customers that match the criteria, one page at a time. Requires device:read.

Returns CustomerSearchResults!

ArgumentTypeDescription
criteriaCustomerSearchCriteria!The facets the listed customers must match, and the page to return.

customersById​

Reads customers by numeric id. Ids naming no customer are omitted. Requires device:read.

Returns [Customer!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the customers to read.

customersByToken​

Reads customers by token. Tokens naming no customer are omitted. Requires device:read.

Returns [Customer!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the customers to read.

detectionRules​

Lists the detection rules that match the criteria, one page at a time. Requires device:read.

Returns DetectionRuleSearchResults!

ArgumentTypeDescription
criteriaDetectionRuleSearchCriteria!The facets the listed detection rules must match, and the page to return.

detectionRulesById​

Reads detection rules by numeric id. Ids naming no rule are omitted. Requires device:read.

Returns [DetectionRule!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the detection rules to read.

detectionRulesByToken​

Reads detection rules by token. Tokens naming no rule are omitted. Requires device:read.

Returns [DetectionRule!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the detection rules to read.

deviceClaim​

Reads a device's current possession claim, or null when it has none. The claim secret is never returned. Requires device:read.

Returns DeviceClaim

ArgumentTypeDescription
deviceTokenString!Token of the device.

deviceCommandVocabulary​

Lists the commands a device currently accepts, from the active published version of its profile. It reads the same data validateCommandEnqueue checks against. Returns null when no device has the token. Requires device:read.

Returns DeviceCommandVocabulary

ArgumentTypeDescription
deviceTokenString!Token of the device.

deviceConfiguration​

A device's configuration: its latest revision, its last report and whether they agree. Null when no device has this token. Reading mints nothing.

Returns DeviceConfiguration

ArgumentTypeDescription
deviceTokenString!The token of the device to read.

deviceConfigurationRevisions​

A page of a device's configuration revisions, newest first. Empty when no device has this token.

Returns DeviceConfigurationRevisionSearchResults!

ArgumentTypeDescription
deviceTokenString!The token of the device whose revisions to list.
paginationPaginationInput!Which page of revisions to return, bounded by the platform page-size ceiling.

deviceConstantsPage​

One page of the numbers the devices of a profile (those whose type adopts it) hold in their metadata under the given names, which a draft calculated-metric formula reads as device.name. Only devices holding at least one of the names are listed. This is the rule preview's source for recalculating history with the devices' CURRENT constants. Pass the previous page's nextCursor as afterId and stop when it is null. A limit outside 1..500, or no key or more than 32, is refused with INVALID_VALUE. Requires device:read.

Returns DeviceConstantsPage!

ArgumentTypeDescription
afterIdStringThe nextCursor of the previous page; omit for the first page.
keys[String!]!The constant names to read, 1 to 32 of them, each 1 to 64 bytes.
limitInt!Page size, 1 to 500.
profileTokenString!The token of the profile whose devices are read.

deviceCredentials​

Lists the device credentials that match the criteria, one page at a time. Requires device:write, as deviceCredentialsById does.

Returns DeviceCredentialSearchResults!

ArgumentTypeDescription
criteriaDeviceCredentialSearchCriteria!The facets the listed device credentials must match, and the page to return.

deviceCredentialsById​

Reads device credentials by numeric id. Ids naming no credential are omitted. Requires device:write rather than device:read: whoever could read credentials could impersonate the device. An access token is never returned by a read, only a fingerprint.

Returns [DeviceCredential!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the device credentials to read.

deviceCredentialsByToken​

Reads device credentials by token. Tokens naming no credential are omitted. Requires device:write, as deviceCredentialsById does.

Returns [DeviceCredential!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the device credentials to read.

deviceDecoder​

Service-only: callable with a service token that holds device:read, and refused for any user's access token. What the ingest path needs to know about the payload decoder of the device with this token, for a device that publishes its own payload: whether the active published version of its type's profile declares one, which input it reads, and the figures the ingest charge is built from. The credential the device presented is authenticated first, and the answer is null for every failure to do so (nothing presented, an unknown, disabled or expired credential, a wrong secret, a credential that belongs to another device, a device that does not exist): those are indistinguishable from one another and say nothing about whether a decoder is attached. A device that authenticates and whose type has no decoder is present: false.

Returns DeviceDecoderPlan

ArgumentTypeDescription
credentialIdString!The credential id the device presented (for an access token, the token).
credentialSecretStringThe secret the device presented, for a credential type that carries one.
credentialTypeString!Type of the credential the device presented (ACCESS_TOKEN, MQTT_BASIC).
deviceTokenString!Token of the device the uplink is addressed to.

deviceLocationDeclaration​

Tells whether a device reports its own position, from the active published version of its profile rather than the draft. Returns null when no device has the token; a device that declares nothing answers with declared false. Requires device:read.

Returns DeviceLocationCapability

ArgumentTypeDescription
deviceTokenString!Token of the device.

deviceMetricVocabulary​

Lists the metrics a device's measurements are validated against, from the active published version of its profile: the same reading ingest validates and stores each measurement by. Returns null when no device has the token. Requires device:read.

Returns DeviceMetricVocabulary

ArgumentTypeDescription
deviceTokenString!Token of the device.

deviceProfileVersions​

Lists the published versions of a device profile, newest first, at most 1000 per call; use limit and offset to page. Empty when the profile has never been published or offset is past the last version. Fails if no profile has the token. Requires device:read.

Returns [DeviceProfileVersion!]!

ArgumentTypeDescription
limitIntMaximum number of versions to return, at least 1. Omitted, or above 1000, it is 1000; below 1 is refused.
offsetIntNumber of newest versions to skip before the first one returned. Omitted, it is 0; negative is refused.
tokenString!Token of the profile.

deviceProfiles​

Lists the tenant's device profiles, newest first, one page at a time. Requires device:read.

Returns DeviceProfileSearchResults!

ArgumentTypeDescription
criteriaDeviceProfileSearchCriteria!The page to return.

deviceProfilesById​

Returns the device profiles with the given ids. Ids that match no profile are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [DeviceProfile!]!

ArgumentTypeDescription
ids[ID!]!Ids of the profiles to return.

deviceProfilesByToken​

Returns the device profiles with the given tokens. Tokens that match no profile are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [DeviceProfile!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the profiles to return.

deviceReplacements​

Lists device replacement records, newest first, optionally narrowed to one device. There is no by-id or by-token query: a replacement is never addressed on its own, only read as part of a device's history. Requires device:read.

Returns DeviceReplacementSearchResults!

ArgumentTypeDescription
criteriaDeviceReplacementSearchCriteria!The facets the listed device replacements must match, and the page to return.

deviceRevokedCertificates​

List the revoked certificates of a trust anchor, newest first.

Returns DeviceRevokedCertificateSearchResults!

ArgumentTypeDescription
anchorTokenString!Token of the anchor.
criteriaDeviceRevokedCertificateSearchCriteria!Paging and filters.

deviceRosterPage​

Detection-engine reconcile read. One page of the device roster: every device, the profile its type adopts (empty when none) and when that membership began. Pass the previous page's nextCursor as afterId and stop when it is null. Requires device:read.

Returns DeviceRosterPage!

ArgumentTypeDescription
afterIdStringThe nextCursor of the previous page; omit for the first page.
limitInt!Page size, from 1 to the maximum the query allows; a value outside that range is refused.

deviceScopeAnchors​

Returns the anchors of each named device: one type:token entry per tracked relationship from the device, such as customer:acme for a device assigned to that customer. Other services stamp a record about a device with these when they write it, which decides which members limited to part of the tenant can see the record. Devices that do not exist are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Not available to a member limited to part of the tenant. Requires device:read.

Returns [DeviceScopeAnchors!]!

ArgumentTypeDescription
deviceTokens[String!]!Tokens of the devices, at most 1000.

deviceThresholdAttributePage​

Detection-engine reconcile read. One page of the numeric SHARED and SERVER device attributes that a dynamic detection threshold can read. A page can hold fewer entries than its limit and still have a nextCursor; only a null cursor ends the walk. Requires device:read.

Returns DeviceThresholdAttributePage!

ArgumentTypeDescription
afterIdStringThe nextCursor of the previous page; omit for the first page.
limitInt!Page size, from 1 to the maximum the query allows; a value outside that range is refused.

deviceTrustAnchors​

List trust anchors that meet the criteria.

Returns DeviceTrustAnchorSearchResults!

ArgumentTypeDescription
criteriaDeviceTrustAnchorSearchCriteria!Paging and filters.

deviceTrustAnchorsById​

Find trust anchors by unique id.

Returns [DeviceTrustAnchor!]!

ArgumentTypeDescription
ids[ID!]!Ids of the anchors.

deviceTrustAnchorsByToken​

Find trust anchors by unique token.

Returns [DeviceTrustAnchor!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the anchors.

deviceTypes​

Lists the tenant's device types, newest first, one page at a time. Requires device:read.

Returns DeviceTypeSearchResults!

ArgumentTypeDescription
criteriaDeviceTypeSearchCriteria!The page to return.

deviceTypesById​

Returns the device types with the given ids. Ids that match no device type are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [DeviceType!]!

ArgumentTypeDescription
ids[ID!]!Ids of the device types to return.

deviceTypesByToken​

Returns the device types with the given tokens. Tokens that match no device type are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [DeviceType!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the device types to return.

devices​

Searches the tenant's devices, newest first, one page at a time. Requires device:read.

Returns DeviceSearchResults!

ArgumentTypeDescription
criteriaDeviceSearchCriteria!Filters and the page to return.

devicesByExternalId​

Returns the devices whose business identifier is one of the given values. Values that match no device are omitted. Requires device:read.

Returns [Device!]!

ArgumentTypeDescription
externalIds[String!]!Business identifiers to look up, matched exactly.

devicesById​

Returns the devices with the given ids. Ids that match no device are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [Device!]!

ArgumentTypeDescription
ids[ID!]!Ids of the devices to return.

devicesByToken​

Returns the devices with the given tokens. Tokens that match no device are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [Device!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the devices to return.

disabledDevicePage​

One page of the tokens of the devices an operator has disabled, in device order. Pass the previous page's nextCursor as afterId and stop when it is null; a limit outside 1..1000 is refused. command-delivery walks it at startup and every few minutes to correct its record of which devices are disabled, because commands already queued for a disabled device are held rather than sent. Requires device:read.

Returns DisabledDevicePage!

ArgumentTypeDescription
afterIdStringThe nextCursor of the previous page; omit for the first page.
limitInt!Page size, 1 to 1000.

entityAttributes​

Lists the entity attributes that match the criteria, one page at a time. Requires device:read.

Returns EntityAttributeSearchResults!

ArgumentTypeDescription
criteriaEntityAttributeSearchCriteria!The facets the listed attributes must match, and the page to return.

entityGroupVersions​

Lists a dynamic entity group's published versions, newest first. At most 1000 per call; limit (at least 1) narrows that and offset (not negative) pages further. Requires device:read.

Returns [EntityGroupVersion!]!

ArgumentTypeDescription
limitIntMost versions to return, at least 1 and at most 1000. Omit for 1000.
offsetIntNumber of versions to skip, not negative. Use with limit to page further.
tokenString!Token of the dynamic entity group.

entityGroups​

Lists the entity groups that match the criteria, optionally by member family and mode, one page at a time. Requires device:read.

Returns EntityGroupSearchResults!

ArgumentTypeDescription
criteriaEntityGroupSearchCriteria!The facets the listed entity groups must match, and the page to return.

entityGroupsById​

Reads entity groups by numeric id. Ids naming no group are omitted. Requires device:read.

Returns [EntityGroup!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the entity groups to read.

entityGroupsByToken​

Reads entity groups by token. Tokens naming no group are omitted. Also answered to a member whose access is limited to part of the tenant, with only the groups its scope names, of which it reads the token and name: description, metadata, selector, members and versions are refused.

Returns [EntityGroup!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the entity groups to read.

entityRelationshipTypes​

Lists the relationship types that match the criteria, one page at a time. Requires device:read.

Returns EntityRelationshipTypeSearchResults!

ArgumentTypeDescription
criteriaEntityRelationshipTypeSearchCriteria!The facets the listed entity relationship types must match, and the page to return.

entityRelationshipTypesById​

Reads relationship types by numeric id. Ids naming no type are omitted. Requires device:read.

Returns [EntityRelationshipType!]!

ArgumentTypeDescription
ids[String!]!Numeric ids of the entity relationship types to read.

entityRelationshipTypesByToken​

Reads relationship types by token. Tokens naming no type are omitted. Requires device:read.

Returns [EntityRelationshipType!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the entity relationship types to read.

entityRelationships​

Lists the relationships that match the criteria, one page at a time. Requires device:read.

Returns EntityRelationshipSearchResults!

ArgumentTypeDescription
criteriaEntityRelationshipSearchCriteria!The facets the listed entity relationships must match, and the page to return.

entityRelationshipsById​

Reads relationships by numeric id. Ids naming no relationship are omitted. Requires device:read.

Returns [EntityRelationship!]!

ArgumentTypeDescription
ids[String!]!Numeric ids of the entity relationships to read.

entityRelationshipsByToken​

Reads relationships by token. Tokens naming no relationship are omitted. Requires device:read.

Returns [EntityRelationship!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the entity relationships to read.

existingEntityRefs​

Returns the subset of the given references that resolve to an existing entity in the caller's tenant, so a caller can find the references whose entity has been deleted. The event-management reconciliation sweep uses it to find orphaned anchors. Requires device:read.

Returns [EntityRef!]!

ArgumentTypeDescription
refs[EntityRefInput!]!The (type, id) references to check.

facetKeys​

Lists the tenant's declared facet keys, optionally for one member family, one page at a time. Powers the console's browse and filter axis picker and typeahead. Requires device:read.

Returns FacetKeySearchResults!

ArgumentTypeDescription
criteriaFacetKeySearchCriteria!The facets the listed facet keys must match, and the page to return.

facetValues​

Lists the distinct values currently in use for a free-text classification field across the tenant's device types or profiles, sorted, without empty values. An authoring form can offer them as suggestions. More than 1000 distinct values are refused with LIMIT_EXCEEDED rather than listed in part. Requires device:read.

Returns [String!]!

ArgumentTypeDescription
facetDeviceFacet!The field whose values to list.

fleetOperationReadiness​

Preview. Report this build's bulk change capabilities and fresh database enforcement and tenant orphan facts. Requires fleet:operate; scoped members are refused. An expensive diagnostic (it counts rows): query it when you need the answer, do not poll it.

warning

Deprecated. Use bulkChangeReadiness.

Returns FleetOperationReadiness!

geoFenceGeometry​

The archived geometry documents stored under the given content addresses. An address the tenant does not hold is absent from the result rather than an error, so incompleteness is the caller's to interpret: a missing body must become a fence that reports an error, never one that is silently absent, since an absent fence reads as outside for a device that is inside. Asking for more addresses than the per-request limit is an error, not a partial answer. Requires device:read.

Returns [GeoFenceGeometry!]!

ArgumentTypeDescription
hashes[String!]!Content addresses of the geometry documents to fetch, taken from a manifest. More than the per-request limit is an error.

geoFenceSetManifest​

The manifest of one fence-set version: which fences it held and the content address of each one's geometry. It reads no geometry, so it costs the same per fence and needs no pagination. An unknown positive version is an error, for the reason given on geoFenceSetSnapshot, and a negative version is refused. Requires device:read.

Returns GeoFenceSetManifest!

ArgumentTypeDescription
versionInt!The fence-set version to read the manifest of.

geoFenceSetSnapshot​

The frozen fence set of one version: the fences that were live when an event stamped with that version was resolved. Used to resolve a version a consumer no longer holds, such as a preview replaying last week, a late redelivery or a cold start. An unknown non-zero version is an error, because a stamp naming a version that is not on record means history was truncated and answering empty would read as no fences rather than cannot know. Requires device:read.

Returns GeoFenceSetSnapshot!

ArgumentTypeDescription
versionInt!The fence-set version to read the frozen fence set of.

geoFences​

Lists the tenant's geofences, one page at a time. Requires device:read.

Returns GeoFenceSearchResults!

ArgumentTypeDescription
criteriaGeoFenceSearchCriteria!The facets the listed geofences must match, and the page to return.

geoFencesById​

Reads geofences by numeric id. Ids naming no fence are omitted. Requires device:read.

Returns [GeoFence!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the geofences to read.

geoFencesByToken​

Reads geofences by token. Tokens naming no fence are omitted. Requires device:read.

Returns [GeoFence!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the geofences to read.

integration​

Find one integration by token, or null when there is none.

Returns Integration

ArgumentTypeDescription
tokenString!Token of the integration.

integrationAuth​

Service-only: callable with a service token that holds device:read, and refused for any user's access token. Proves a bearer token belongs to the integration with this token. Returns the integration when it does, and null for every failure: no such integration and a wrong token are indistinguishable. A switched-off integration whose token matches is returned with enabled false, so callers MUST check enabled before accepting traffic. Used by the ingest path to authenticate a sender.

Returns Integration

ArgumentTypeDescription
secretString!The bearer token the sender presented.
tokenString!Token of the integration, as it appears in the sender's URL.

integrationDecoder​

Service-only: callable with a service token that holds device:read, and refused for any user's access token. What the ingest path needs to know about the payload decoder of a device type, as seen by one integration: whether the active published version of the type's profile declares one, which input an uplink must carry for it, and the figures the ingest charge is built from. Returns null for every failure to authenticate (no such integration, a wrong token and a switched-off integration are indistinguishable), and present: false for a device type that does not exist or lies outside the integration's scope.

Returns IntegrationDecoderPlan

ArgumentTypeDescription
deviceTypeTokenString!Token of the device type the uplink's device belongs to.
integrationString!Token of the integration, as it appears in the sender's URL.
secretString!The bearer token the sender presented.

integrations​

List integrations that meet the criteria.

Returns IntegrationSearchResults!

ArgumentTypeDescription
criteriaIntegrationSearchCriteria!Paging and filters.

maintenanceWindowOpening​

When an operation under the maintenance window with this token may start at the given instant. The answer for a deleted window is found=false, not an error. Requires device:read.

Returns MaintenanceWindowOpening!

ArgumentTypeDescription
atStringThe instant to evaluate at, as an RFC 3339 timestamp. Omit it for now.
tokenString!Token of the window.

maintenanceWindows​

List the tenant's maintenance windows, one page at a time. Requires device:read.

Returns MaintenanceWindowSearchResults!

ArgumentTypeDescription
criteriaMaintenanceWindowSearchCriteria!Which page to return.

maintenanceWindowsById​

Find maintenance windows by unique id. Ids that match nothing are omitted. Requires device:read.

Returns [MaintenanceWindow!]!

ArgumentTypeDescription
ids[ID!]!Ids of the windows to find.

maintenanceWindowsByToken​

Find maintenance windows by unique token. Tokens that match nothing are omitted. Requires device:read.

Returns [MaintenanceWindow!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the windows to find.

metricDefinitions​

Searches the tenant's metric definitions, newest first, one page at a time. These are the draft definitions, not a published version. Requires device:read.

Returns MetricDefinitionSearchResults!

ArgumentTypeDescription
criteriaMetricDefinitionSearchCriteria!Filters and the page to return.

metricDefinitionsById​

Returns the metric definitions with the given ids. Ids that match nothing are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [MetricDefinition!]!

ArgumentTypeDescription
ids[ID!]!Ids of the metric definitions to return.

metricDefinitionsByToken​

Returns the metric definitions with the given tokens. Tokens that match nothing are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.

Returns [MetricDefinition!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the metric definitions to return.

payloadDecoderFunctions​

The decoder function library, in a stable order: every function a decoder expression may call, with its signature and limits. It drives the editor's help. Requires device:read.

Returns [PayloadDecoderFunction!]!

payloadDecoderHealth​

How the decoder of the profile has been doing over the last minutes (default 60, at most 10080, one week), summed over replicas. Rows are kept 7 days. Requires device:write.

Returns PayloadDecoderHealth!

ArgumentTypeDescription
minutesIntThe span in minutes.
profileTokenString!Token of the profile.

payloadDecoderSamples​

The failing uplinks kept for the profile, newest first: at most 20 are kept, and a new one is kept at most every 10 seconds per replica. Requires device:write.

Returns [PayloadDecoderSample!]!

ArgumentTypeDescription
limitIntHow many to list (default and at most 20 kept).
profileTokenString!Token of the profile.

planBulkChange​

Preview. What an operation would do, without writing anything. Needs device:write and fleet:operate.

Returns BulkChangePlan!

ArgumentTypeDescription
requestBulkChangeCreateRequest!Preview. The bulk change to plan. Nothing is written.

previewBulkChangeResume​

Preview. What resuming a paused operation with this change would do, without writing anything. Needs device:write and fleet:operate.

Returns BulkChangeResumePreview!

ArgumentTypeDescription
safetyBulkChangeSafetyInputPreview. New limits to preview; an omitted limit keeps its current value.
tokenString!Preview. The paused bulk change's token.

previewBulkChangeReversal​

Preview. What reversing a bulk change would do, without writing anything. Needs device:write and fleet:operate.

Returns BulkChangeReversalPreview!

ArgumentTypeDescription
requestBulkChangeReversalRequest!Preview. The reversal to preview. Nothing is written.

previewSelector​

Evaluates a candidate dynamic-group selector for a member family without saving it, for a live matches-N authoring preview. It applies the same checks, translation and bounded query as a saved dynamic group, so the preview is what the group would resolve. A selector that is not expressible, over budget or malformed returns valid false with an inline error rather than failing. Requires device:read.

Returns SelectorPreview!

ArgumentTypeDescription
memberTypeString!The entity family to evaluate the selector against: device, asset, area or customer.
paginationPaginationInput!The page of matching members to return.
selectorString!The candidate CEL membership selector. It is evaluated but not saved.

provisioningProfiles​

Lists the provisioning profiles that match the criteria, one page at a time. Requires device:read. The provision secret is never returned.

Returns ProvisioningProfileSearchResults!

ArgumentTypeDescription
criteriaProvisioningProfileSearchCriteria!The facets the listed provisioning profiles must match, and the page to return.

provisioningProfilesById​

Reads provisioning profiles by numeric id. Ids naming no profile are omitted. Requires device:read. The provision secret is never returned.

Returns [ProvisioningProfile!]!

ArgumentTypeDescription
ids[ID!]!Numeric ids of the provisioning profiles to read.

provisioningProfilesByToken​

Reads provisioning profiles by token. Tokens naming no profile are omitted. Requires device:read. The provision secret is never returned.

Returns [ProvisioningProfile!]!

ArgumentTypeDescription
tokens[String!]!Tokens of the provisioning profiles to read.

resolveDeviceGroupTargets​

Returns one page of the devices an entity group contains, for use as the target of a command. Pass each page's nextCursor as afterId to get the next one. A device that stays in the group throughout a walk is visited exactly once. A dynamic group is resolved from a published version, never from its editable draft. A group that cannot be a target is answered with rejected set and a code, not with an error. Requires device:read.

Returns DeviceGroupTargetPage!

ArgumentTypeDescription
afterIdStringThe nextCursor of the previous page. Omit it to start from the beginning. A malformed cursor fails the request.
groupTokenString!Token of the entity group.
limitInt!Maximum number of devices on the page, from 1 to 1000.
versionIntPublished version of a dynamic group to resolve. Omit it for the active version. Must be omitted for a static group.

semanticContext​

The tenant's semantic context: the vocabulary packs it has enabled and the custom prefixes it declared. A tenant that never set one has an empty context, which enables nothing, so no binding is accepted. Requires device:read; a member limited to part of the tenant may read it. Null only on an error, which says why.

Returns SemanticContext

testMetricFormula​

Checks a calculated-metric formula against a profile's draft measured metrics and evaluates it for a sample you type, with the same evaluator that computes a published calculated metric from each reading. Nothing is stored. A sample of more than 256 values is refused with LIMIT_EXCEEDED, and naming a key twice with INVALID_VALUE. Requires device:read.

Returns MetricFormulaTest!

ArgumentTypeDescription
constants[MetricValueInput!]The values of the device constants the formula reads as device.name, as the device's metadata would hold them, at most 32. A constant the formula reads and this omits is absent, and the formula is skipped as missing_input, as it would be for a device without it. Omit this when the formula reads none.
dataTypeString!The result type: DOUBLE, INT or BOOLEAN.
expressionString!The formula.
maxValueFloatLargest value the metric accepts; a result above it is skipped.
metricKeyStringThe calculated metric's key, when the formula belongs to one.
minValueFloatSmallest value the metric accepts; a result below it is skipped.
profileTokenString!Token of the profile whose draft measured metrics the formula reads.
sample[MetricValueInput!]!The input values, at most 256.

testPayloadDecoder​

Runs a payload decoder over one input and reports the readings it would store, what it skipped, the error with its expression path and the cost, then runs the profile's saved vectors. The decoder is checked against the profile's DRAFT metrics with the same compiler and the same output validation that run at ingest, and a webhook body is parsed by the same code as ingest. Nothing is stored. A document that does not compile is reported in error, not as a request error. Limited to 10 requests per second per tenant (RATE_LIMITED). Requires device:read, except that sampleId requires device:write. A caller limited to part of the tenant is refused.

Returns PayloadDecoderTestResult!

ArgumentTypeDescription
inputPayloadDecoderTestInput!The decoder and the input.

unregisteredIntegrationDevices​

The sender-named devices an integration has seen that the tenant has no device in scope for, most recently seen first. Requires device:read.

Returns UnregisteredIntegrationDeviceSearchResults!

ArgumentTypeDescription
criteriaUnregisteredIntegrationDeviceSearchCriteria!The integration and the page.

validateCommandEnqueue​

Checks whether a command may be sent to a device, using the active published version of the device's profile. If that version declares commands, the key must be one of them and the payload must satisfy its parameters; if it declares none, or the device has no published profile, any command is allowed. Refusals are returned as a verdict, not as an error. Requires device:read.

Returns CommandEnqueueVerdict!

ArgumentTypeDescription
commandKeyString!Key of the command to send.
deviceTokenString!Token of the target device.
payloadStringThe command's arguments as a JSON object. Omit it or send null to check a command sent with no arguments, which passes only if no parameter is required.

validateCommandEnqueueBatch​

Checks one command against many devices at once, with the same rules as validateCommandEnqueue. Only refusals are returned: a device that may receive the command produces no entry, so an empty list means every listed device may receive it. Duplicate tokens are collapsed, and refusals come back in the order each device was first named. More than 2000 tokens fails the request. Requires device:read.

Returns [BatchEnqueueRefusal!]!

ArgumentTypeDescription
commandKeyString!Key of the command to send.
deviceTokens[String!]!Tokens of the target devices, at most 2000.
payloadStringThe command's arguments as a JSON object, applied to every device. Omit it to check a command with no arguments.

Mutations​

abortBulkChange · acknowledgeAlarm · acknowledgeAlarms · approveAgentProposal · approveAutomationReview · approveAutomationReviewPolicyChange · assignDeviceGateway · cancelAutomationReviewPolicyChange · cancelDeviceClaim · claimDevice · clearAlarm · clearAssetParent · clearDeviceGateway · clearDeviceProfileDecoder · clearInstalledPosition · clearUnregisteredIntegrationDevices · copyDeviceConfiguration · createAlarmSuppressionWindow · createArea · createAreaType · createAsset · createAssetType · createBulkChange · createCommandDefinition · createCustomer · createCustomerType · createDetectionRule · createDevice · createDeviceCredential · createDeviceProfile · createDeviceTrustAnchor · createDeviceType · createDevices · createEntityGroup · createEntityRelationship · createEntityRelationshipType · createEntityRelationships · createGeoFence · createIntegration · createMaintenanceWindow · createMetricDefinition · createProvisioningProfile · deleteAlarmSuppressionWindow · deleteArea · deleteAreaType · deleteAsset · deleteAssetType · deleteCommandDefinition · deleteCustomer · deleteCustomerType · deleteDetectionRule · deleteDevice · deleteDeviceCredential · deleteDeviceProfile · deleteDeviceRevocationList · deleteDeviceTrustAnchor · deleteDeviceType · deleteEntityAttribute · deleteEntityGroup · deleteEntityRelationshipType · deleteFacetKey · deleteGeoFence · deleteIntegration · deleteMaintenanceWindow · deleteMetricDefinition · deleteProvisioningProfile · endAlarmSuppressionWindow · importDevices · importFacetValues · initiateDeviceClaim · pauseBulkChange · proposeAlarmAction · publishAssetType · publishDeviceProfile · publishEntityGroup · putDeviceRevocationList · recordIntegrationAuthFailure · recordIntegrationUndecoded · rejectAgentProposal · rejectAutomationReview · removeEntityRelationship · removeEntityRelationships · renameDeviceProfile · replaceDevice · resetDeviceProvisioning · resolveAmbiguousBulkChangeLines · resolveIntegrationDevice · restoreDeviceConfiguration · resumeBulkChange · reverseBulkChange · revokeDeviceCertificate · revokeProvisionedDevices · rollbackAssetType · rollbackDeviceProfile · rollbackEntityGroup · rotateIntegrationToken · rotateProvisioningProfileSecret · runAutomationReview · setAlarmDisposition · setAssetParent · setAutomationReviewPolicy · setDeviceProfileConfigurationDeclaration · setDeviceProfileDecoder · setEntityAttribute · setEntityGroupAccessScope · setFacetKey · setInstalledPosition · setSemanticContext · startBulkChange · unrevokeDeviceCertificate · updateAlarmSuppressionWindow · updateArea · updateAreaType · updateAsset · updateAssetType · updateCommandDefinition · updateCustomer · updateCustomerType · updateDetectionRule · updateDevice · updateDeviceCredential · updateDeviceProfile · updateDeviceTrustAnchor · updateDeviceType · updateEntityGroup · updateEntityRelationshipType · updateGeoFence · updateIntegration · updateMaintenanceWindow · updateMetricDefinition · updateProvisioningProfile

abortBulkChange​

Preview. Aborts a READY, RUNNING or PAUSED operation: lines not yet applied are cancelled and applied lines keep settling. Needs device:write only.

Returns BulkChange!

ArgumentTypeDescription
tokenString!Preview. The bulk change's token.

acknowledgeAlarm​

Acknowledges an alarm: an operator asserts the alarm has been seen. It does not change state or severity and is independent of ACTIVE or CLEARED. Idempotent: acknowledging an acknowledged alarm returns it unchanged. The acknowledging identity is the authenticated subject, recorded server-side. Refused when the token names no alarm. Requires alarm:write.

Returns Alarm!

ArgumentTypeDescription
tokenString!Token of the alarm to acknowledge.

acknowledgeAlarms​

Acknowledges many alarms at once, the bulk counterpart of acknowledgeAlarm with the same authority, transition and recorded identity. It is partial: a token naming no alarm is refused and listed in refusals, and every other alarm is still acknowledged. An empty list acknowledges nothing. At most 2000 tokens per request; more is an error rather than a per-alarm refusal. Duplicate tokens are collapsed. Requires alarm:write.

Returns BulkAcknowledgeAlarmsResult!

ArgumentTypeDescription
tokens[String!]!Tokens of the alarms to acknowledge, at most 2000. An empty list acknowledges nothing.

approveAgentProposal​

(Preview: may change in a minor release.) A person approves an agent proposal. The digest must be the one shown for the proposal. The approver must be a person (never an agent), hold the write the action needs, be in an approver role of the agent policy, and have verified a second factor recently enough (STEP_UP_REQUIRED otherwise). The final approval carries out the action as that person, in one transaction after asking the policy again. If an alarm was raised again or policy now refuses, the proposal ends REFUSED and nothing is done. Earlier approvals are recorded. This preview is off by default and never automatic.

Returns AgentProposal!

ArgumentTypeDescription
digestString!(Preview: may change in a minor release.) The digest shown for the proposal.
tokenString!(Preview: may change in a minor release.) The proposal's token.

approveAutomationReview​

(Preview: may change in a minor release.) Approve frozen evidence. Requires an unscoped person with device:write and event:read and a recent second factor; refuses the review creator and draft authors.

Returns AutomationReview

ArgumentTypeDescription
digestString!(Preview: may change in a minor release.) The reviewDigest the approver was shown.
tokenString!(Preview: may change in a minor release.) The review token.

approveAutomationReviewPolicyChange​

(Preview: may change in a minor release.) Approve a pending policy change. Requires device:write, a second person's own unscoped session and a recently verified second factor; the proposer is refused.

Returns AutomationReviewPolicy

ArgumentTypeDescription
tokenString!(Preview: may change in a minor release.) The policy change token.

assignDeviceGateway​

Puts a device behind a gateway device, so that gateway's credential may publish the device's telemetry on the gateway's own topics, and returns the device. Assigning a device to the gateway it already has changes nothing; a device with another gateway is moved. Refused with INVALID_VALUE when the two are the same device, when the gateway is itself behind a gateway, or when the device is itself the gateway of other devices (gateways are one level deep). Fails if either token names no device. This grants the gateway the same standing over the device as issuing the device a credential, so it requires device:write and is refused for a member limited to part of the tenant.

Returns Device!

ArgumentTypeDescription
deviceTokenString!Token of the device to put behind the gateway.
gatewayTokenString!Token of the gateway device.

cancelAutomationReviewPolicyChange​

(Preview: may change in a minor release.) Cancel a pending policy change. Requires device:write and a person's own unscoped session.

Returns AutomationReviewPolicy

ArgumentTypeDescription
tokenString!(Preview: may change in a minor release.) The policy change token.

cancelDeviceClaim​

Cancels a device's open claim without assigning the device. Returns true when an open claim was closed and false when there was none. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
deviceTokenString!Token of the device whose open claim to cancel.

claimDevice​

Redeems a device's claim by presenting its secret, assigning the device to a customer over a relationship of the given type, and returns the created edge. The claim is consumed in the same transaction, so one secret can never produce two ownership edges. Refused when the claim is expired, not open, or the secret does not match. Requires device:write.

Returns EntityRelationship!

ArgumentTypeDescription
requestDeviceClaimRequest!The device, claim secret and customer to assign it to.

clearAlarm​

Clears an alarm by hand, moving it to CLEARED. A manual override: the detection engine also clears an alarm when its conditions resolve. Idempotent on an alarm that is already CLEARED. It does not acknowledge the alarm. Refused when the token names no alarm. Requires alarm:write.

Returns Alarm!

ArgumentTypeDescription
tokenString!Token of the alarm to clear.

clearAssetParent​

Detaches an asset from its parent, making it a root; its children travel with it. Returns true when an edge was removed and false when the asset was already a root. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
childTokenString!Token of the asset to detach from its parent.

clearDeviceGateway​

Takes a device out from behind its gateway and returns it: the gateway's next publish for the device is refused and recorded in failed events. Clearing a device that has no gateway changes nothing. Fails if no device has the token. Requires device:write.

Returns Device!

ArgumentTypeDescription
deviceTokenString!Token of the device.

clearDeviceProfileDecoder​

Withdraws a profile's DRAFT payload decoder. Published versions keep theirs. Returns the updated profile. Requires device:write.

Returns DeviceProfile!

ArgumentTypeDescription
profileTokenString!Token of the profile.

clearInstalledPosition​

Removes the installed position of a device or an asset. Needs device:write. Clearing an entity that has none succeeds.

Returns Boolean!

ArgumentTypeDescription
familyPositionFamily!Whether token names a device or an asset.
tokenString!The token of the device or asset.

clearUnregisteredIntegrationDevices​

Remove every unregistered device an integration has recorded, returning how many rows went. They are observations; ones the sender is still sending are recorded again. An unknown integration clears nothing.

Returns Int!

ArgumentTypeDescription
integrationString!Token of the integration.

copyDeviceConfiguration​

Makes one device's desired configuration equal to another device's latest revision (or the revision fromRevision names), by setting the target's shared attributes for its declared keys and minting a new revision on the target; the source is not changed. Both devices must be in the caller's tenant (another tenant's device is NOT_FOUND), and the target's profile must declare every key the source's document carries. Refused, writing nothing, with the same codes as restoreDeviceConfiguration; a source with no revision, or without fromRevision, is NOT_FOUND. Requires device:write.

Returns DeviceConfiguration!

ArgumentTypeDescription
fromDeviceTokenString!Token of the device whose configuration to copy.
fromRevisionIntThe source revision to copy; omitted or null copies the source's latest. Pass the revision you previewed, so a source that changes in between cannot make the copy apply something you were not shown.
toDeviceTokenString!Token of the device to copy it to.

createAlarmSuppressionWindow​

Create a window. Requires alarm:write; broad reach additionally requires notification:write.

Returns AlarmSuppressionWindow!

ArgumentTypeDescription
requestAlarmSuppressionWindowCreateRequest!Window declaration.

createArea​

Creates an area of an area type, optionally bounded by an existing geofence. Requires device:write.

Returns Area!

ArgumentTypeDescription
requestAreaCreateRequestThe area to create.

createAreaType​

Creates an area type. Requires device:write.

Returns AreaType!

ArgumentTypeDescription
requestAreaTypeCreateRequestThe area type to create.

createAsset​

Creates an asset of an asset type. Its property document, if any, is validated against the type's active published contract. Requires device:write.

Returns Asset!

ArgumentTypeDescription
requestAssetCreateRequestThe asset to create.

createAssetType​

Creates an asset type with a draft property contract, which is not binding until published. Requires device:write.

Returns AssetType!

ArgumentTypeDescription
requestAssetTypeCreateRequestThe asset type to create.

createBulkChange​

Preview. Creates a bulk change in READY. Creating again with the same token and the same request returns the original and writes nothing; a different request under the token is a CONFLICT. Needs device:write and fleet:operate.

Returns BulkChange!

ArgumentTypeDescription
requestBulkChangeCreateRequest!Preview. The bulk change to create.

createCommandDefinition​

Adds a command definition to a profile's draft and returns it. It reaches devices when the profile is next published. Requires device:write.

Returns CommandDefinition!

ArgumentTypeDescription
requestCommandDefinitionCreateRequestThe new command definition's fields. Although the schema lets it be omitted, a call without it fails.

createCustomer​

Creates a customer of a customer type. A token that a deleted customer held is retired and is refused with INVALID_VALUE; a token a live customer holds is refused with CONFLICT. Requires device:write.

Returns Customer!

ArgumentTypeDescription
requestCustomerCreateRequestThe customer to create.

createCustomerType​

Creates a customer type. Requires device:write.

Returns CustomerType!

ArgumentTypeDescription
requestCustomerTypeCreateRequestThe customer type to create.

createDetectionRule​

Creates a detection rule on a device profile's draft. Requires device:write, plus the authority each action in the rule's definition needs. The profile must exist, the token must be new, and the profile's ceiling on rules applies. It takes effect on devices when a profile version containing it is published.

Returns DetectionRule!

ArgumentTypeDescription
requestDetectionRuleCreateRequest!The detection rule to create.

createDevice​

Creates a device and returns it. Requires device:write.

Returns Device!

ArgumentTypeDescription
requestDeviceCreateRequestThe new device's fields. Although the schema lets it be omitted, a call without it fails.

createDeviceCredential​

Creates a credential for a device. For ACCESS_TOKEN the token is returned once, in this response, and only a keyed digest is stored. For MQTT_BASIC the password is write-only. For X509_CERTIFICATE the certificate chain is verified against the named trust anchor when created. Requires device:write.

Returns DeviceCredential!

ArgumentTypeDescription
requestDeviceCredentialCreateRequestThe device credential to create.

createDeviceProfile​

Creates a device profile, with no definitions and no published version, and returns it. Requires device:write.

Returns DeviceProfile!

ArgumentTypeDescription
requestDeviceProfileCreateRequestThe new profile's fields. Although the schema lets it be omitted, a call without it fails.

createDeviceTrustAnchor​

Create a trust anchor from a CA certificate. Refused when the tenant already holds 32.

Returns DeviceTrustAnchor!

ArgumentTypeDescription
requestDeviceTrustAnchorCreateRequest!The anchor to create.

createDeviceType​

Creates a device type and returns it. Requires device:write.

Returns DeviceType!

ArgumentTypeDescription
requestDeviceTypeCreateRequestThe new device type's fields. Although the schema lets it be omitted, a call without it fails.

createDevices​

Creates up to 1000 devices of one type from templates, in one transaction: every device is created, or none is (an invalid template, a rendered token that repeats or is already in use, or an unknown device type fails them all). Returns the created devices in index order. Requires device:write.

Returns [Device!]!

ArgumentTypeDescription
requestDeviceBulkCreateRequest!The type, count and templates of the devices to create.

createEntityGroup​

Creates an entity group. A static group's members are managed with relationships of the member type; a dynamic group carries a CEL selector, validated and cost-checked on create, and resolves its members when read. Requires device:write.

Returns EntityGroup!

ArgumentTypeDescription
requestEntityGroupCreateRequestThe entity group to create.

createEntityRelationship​

Creates a relationship edge between two existing entities. Requires device:write.

Returns EntityRelationship!

ArgumentTypeDescription
requestEntityRelationshipCreateRequest!The entity relationship to create.

createEntityRelationshipType​

Creates a relationship type. Requires device:write.

Returns EntityRelationshipType!

ArgumentTypeDescription
requestEntityRelationshipTypeCreateRequest!The entity relationship type to create.

createEntityRelationships​

Creates many relationship edges in one transaction, for bulk add-members and assign. The reserved member relationship type is created on first use. Requires device:write.

Returns [EntityRelationship!]!

ArgumentTypeDescription
requests[EntityRelationshipCreateRequest!]!The relationship edges to create, all in one transaction.

createGeoFence​

Creates a geofence and mints a new fence-set version. Requires device:write and location:read: whoever can shape a fence can narrow it until a containment rule's raise and resolve reveals a device's actual coordinates, so authoring is held to the same authority as reading positions. Reading fences needs only device:read.

Returns GeoFence!

ArgumentTypeDescription
requestGeoFenceCreateRequest!The geofence to create.

createIntegration​

Create an inbound integration. The response carries the bearer token the server generated for it, once. Refused when the tenant already holds as many integrations as its tier allows.

Returns IntegrationSecretResult!

ArgumentTypeDescription
requestIntegrationCreateRequest!The integration to create.

createMaintenanceWindow​

Create a maintenance window. The time zone and slots are validated together, and the slots are stored in canonical form. Requires device:write.

Returns MaintenanceWindow!

ArgumentTypeDescription
requestMaintenanceWindowCreateRequest!The window to create.

createMetricDefinition​

Adds a metric definition to a profile's draft and returns it. It reaches devices when the profile is next published. Requires device:write.

Returns MetricDefinition!

ArgumentTypeDescription
requestMetricDefinitionCreateRequestThe new metric definition's fields. Although the schema lets it be omitted, a call without it fails.

createProvisioningProfile​

Creates a provisioning profile. The response carries the provision secret the server generated, once; it cannot be read again, so rotate it if it is lost. A certificate profile, made by naming a trust anchor, has no secret. Requires device:write.

Returns ProvisioningProfileSecretResult!

ArgumentTypeDescription
requestProvisioningProfileCreateRequestThe provisioning profile to create.

deleteAlarmSuppressionWindow​

Delete a whole visible window without removing cycle history. Requires the authorities that creating it needed.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the window to delete.

deleteArea​

Deletes an area together with its relationship edges. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the area to delete.

deleteAreaType​

Deletes an area type. Refused while any area references it. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the area type to delete.

deleteAsset​

Deletes an asset together with its relationship edges. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the asset to delete.

deleteAssetType​

Deletes an asset type together with its published version history. Refused while any asset references the type. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the asset type to delete.

deleteCommandDefinition​

Removes a command definition from a profile's draft. Published versions keep their copy. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the command definition to delete.

deleteCustomer​

Deletes a customer together with its relationship edges. Its token is retired: no other customer in the tenant can be created with it. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the customer to delete.

deleteCustomerType​

Deletes a customer type. Refused while any customer references it. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the customer type to delete.

deleteDetectionRule​

Deletes a detection rule outright. A published profile version keeps the copy it froze. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the detection rule to delete.

deleteDevice​

Deletes a device together with its credentials, replacement history, relationships, attributes, alarms and group memberships. Returns true when it was deleted and false when no device has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the device to delete.

deleteDeviceCredential​

Deletes a device credential outright; it stops authenticating at once. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the device credential to delete.

deleteDeviceProfile​

Deletes a device profile together with its metric, command and detection-rule definitions and all its published versions. Returns true when it was deleted and false when no profile has the token. Refused with REFERENCE_VIOLATION while any device type adopts it. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the profile to delete.

deleteDeviceRevocationList​

Delete the current list of an issuer and every entry it carried; those certificates are no longer refused for it. The issuer's highest CRL number is kept, so an older list still cannot be uploaded afterwards. True if there was a list. Under REQUIRE_CURRENT the anchor's certificates from that issuer are then refused until a new list is uploaded.

Returns Boolean!

ArgumentTypeDescription
anchorTokenString!Token of the trust anchor.
issuerKeyString!SHA-256 of the signer's public key, hex.
issuerNameString!SHA-256 of the signer's subject, hex.

deleteDeviceTrustAnchor​

Delete a trust anchor nothing relies on. Refused with extensions.code REFERENCE_VIOLATION while a credential or a provisioning profile still names it, and while it holds manual revocations (un-revoke them first). Revocation lists uploaded for it, their entries and the highest CRL number accepted for each issuer are discarded with it: an anchor re-created from the same CA starts again, and accepts a CRL whose number the deleted anchor had already passed.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the anchor.

deleteDeviceType​

Deletes a device type. Returns true when it was deleted and false when no device type has the token. Refused with REFERENCE_VIOLATION while any device has this type. The profile it adopted is not affected. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the device type to delete.

deleteEntityAttribute​

Deletes one entity attribute, identified by its entity, scope and key. Removing a SHARED attribute can take an entity out of a group whose selector reads it. Returns true when an attribute was deleted and false when there was none. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
attrKeyString!Key of the attribute to delete.
entityString!Token of the entity the attribute belongs to.
entityTypeString!Entity type the attribute belongs to, for example device.
scopeString!Scope of the attribute: SHARED, SERVER or CLIENT.

deleteEntityGroup​

Deletes an entity group together with its member relationships and its frozen versions. Refused while a detection rule scopes to the group. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the entity group to delete.

deleteEntityRelationshipType​

Deletes a relationship type. Refused while any relationship uses it. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the entity relationship type to delete.

deleteFacetKey​

Deletes a facet key declaration by its natural key; the attribute values on the entities are untouched. A system facet cannot be deleted and its removal is refused. Returns true when a declaration was removed. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
keyString!The facet key to delete.
memberTypeString!The member family the key is declared for: device, asset, area or customer.

deleteGeoFence​

Deletes a geofence outright and mints a new fence-set version, after which its token can be reused. Refused while an area names the fence as its boundary. Returns true when it was deleted and false when nothing has the token. Requires device:write only.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the geofence to delete.

deleteIntegration​

Delete an integration. Returns false when there was none.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the integration.

deleteMaintenanceWindow​

Delete a maintenance window. Refused while any device type uses it, because deleting it would stop holding those types' disruptive commands. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the window to delete.

deleteMetricDefinition​

Removes a metric definition from a profile's draft. Published versions keep their copy. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the metric definition to delete.

deleteProvisioningProfile​

Deletes a provisioning profile outright. Refused while any credential it issued still exists, revoked and expired ones included; remove them by resetting the devices' provisioning or deleting the devices. Devices earmarked for the profile fall back to no earmark. Returns true when it was deleted and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the provisioning profile to delete.

endAlarmSuppressionWindow​

End a whole visible window now, recording the caller's subject. Requires alarm:write and visibility of the window.

Returns AlarmSuppressionWindow!

ArgumentTypeDescription
tokenString!Token of the window to end.

importDevices​

Imports up to 1000 devices from rows, each in its own transaction, and reports what happened to every row; one bad row never affects another. Create-only and idempotent on the device token: a row whose device already exists exactly as described is EXISTS, one that exists differently is CONFLICT, and nothing is ever updated, so re-running a file is safe. A device's credential is created with it in the same transaction in FACTORY_CREDENTIALS mode; the same device and credential id re-run as EXISTS without the secret being compared. dryRun decides every row by the same code and writes nothing. More than 1000 rows fails the whole call. Requires device:write.

Returns DeviceImportResult!

ArgumentTypeDescription
dryRunBoolean!True to decide every row without writing anything.
modeDeviceImportMode!How credentials are treated.
rows[DeviceImportRow!]!The rows to import, at most 1000.

importFacetValues​

Import 1-1000 facet values with one result per row in input order. Requires device:write, like setEntityAttribute. Each changed row commits independently with membership and configuration reconciliation; failures report REFUSED. Re-running identical normalized values reports EXISTS without another write. Different values replace the existing SHARED value. Later duplicate (memberType, token, key) rows in this call are INVALID. Does not create entities.

Returns [FacetValueImportRowResult!]!

ArgumentTypeDescription
dryRunBoolean!Validate and predict outcomes without writing; concurrent changes or write failures may change actual outcomes.
rows[FacetValueImportRow!]!Values on existing entities, addressed by token.

initiateDeviceClaim​

Opens, or reopens, a possession claim on a device with a secret that an eventual owner will present. A device has a single claim; reopening a claimed or canceled one clears its earlier redemption. The secret is stored only as a keyed digest. Requires device:write.

Returns DeviceClaim!

ArgumentTypeDescription
requestDeviceClaimInitiateRequest!The device and the secret an eventual owner must present.

pauseBulkChange​

Preview. Pauses a RUNNING operation. When it returns, no line is applied under the old state. A wait that times out is FENCE_PENDING and changes nothing. Needs device:write only, so someone who has lost fleet:operate can still stop it.

Returns BulkChange!

ArgumentTypeDescription
tokenString!Preview. The RUNNING bulk change's token.

proposeAlarmAction​

(Preview: may change in a minor release.) An AI agent asks for alarms to be acknowledged or cleared. Only an agent's token holding alarm:propose may call it; a person's own session is refused with AGENT_ONLY and acts through acknowledgeAlarm and clearAlarm instead. The tenant's agent policy decides, and a request it allows waits for people to approve it. In this preview, off by default, the final approval carries out the action as the approving person in one transaction after asking the policy again. If an alarm was raised again or policy now refuses, it ends REFUSED without effects. Execution is never automatic. A member limited to part of the tenant is refused.

Returns AgentProposalOutcome!

ArgumentTypeDescription
inputAgentAlarmProposalInput!(Preview: may change in a minor release.) The request.

publishAssetType​

Freezes an asset type's draft property contract into a new immutable version and makes it the version its assets are validated against. Refused when the type has no draft contract to freeze; a draft that is an empty array publishes, and says that assets of the type carry nothing. label and description annotate the version. Requires device:write.

Returns AssetTypeVersion!

ArgumentTypeDescription
descriptionStringOptional longer description of what the new version changes.
labelStringOptional label for the new version. It may embed a semantic version string, which is not parsed.
tokenString!Token of the asset type to publish.

publishDeviceProfile​

Freezes the profile's current draft (its metric, command and detection-rule definitions, its position declaration and its configuration declaration) into a new version and makes that version the one devices use. The draft's enabled detection rules are checked first; a rejected rule, or a check that cannot be completed, fails the publish and nothing is stored. Fails if no profile has the token. Returns the new version. Requires device:write. On a protected profile the approved review must still match the draft, the active version, the policy and its approvers' standing.

Returns DeviceProfileVersion!

ArgumentTypeDescription
automationReviewTokenString(Preview: may change in a minor release.) The approved automation review this publish consumes. Required when the profile is protected by an automation review policy, where a publish without one is refused with REVIEW_REQUIRED; ignored otherwise.
descriptionStringOptional notes for the version, up to 1024 characters.
labelStringOptional label for the version, up to 128 characters, such as a release name.
tokenString!Token of the profile to publish.

publishEntityGroup​

Publishes a dynamic entity group's current draft selector as a new immutable version and makes it the active version a rule-scoped resolve reads. Rejected for a static group. Requires device:write.

Returns EntityGroupVersion!

ArgumentTypeDescription
descriptionStringOptional longer description of what the new version changes.
expectedActiveVersionIntThe active version the caller saw: 0 for a group never published. When the group's active version has since moved, because someone else published or rolled back, nothing is published and the request fails as modified by another writer. Omit to publish unconditionally.
labelStringOptional short label for the new version.
tokenString!Token of the group to publish.

putDeviceRevocationList​

Store a CRL as the current list of its issuer under a trust anchor, replacing the issuer's previous list. Its signature is verified against the anchor (or the issuer chain that links the signer to it) and it is refused unless its CRL number is above every number accepted before for that issuer, including after the list was deleted. The certificates it names are refused from the next connect on every replica. Uploading the very CRL already in force changes nothing. The text is limited (the instance's callout.revocation.maxGraphqlCrlBytes, 2 MiB of DER at most); larger lists go over the streaming REST upload, PUT /trust-anchors/{token}/crl on this service. The live sessions of the devices the list newly revokes are ended; sessionsEnded on the result says whether that was confirmed.

Returns DeviceRevocationListResult!

ArgumentTypeDescription
anchorTokenString!Token of the trust anchor.
crlPemString!The CRL, PEM (exactly one X509 CRL block).
issuerChainPemStringThe CRL signer's certificate first, then the CAs that link it to the anchor, PEM. Omit it when the anchor itself signed the CRL.

recordIntegrationAuthFailure​

Service-only: callable with a service token that holds device:read, and refused for any user's access token. Stamps the time a request for the integration last failed authentication, at most once a minute. A token that names no integration is not an error and writes nothing.

Returns Boolean!

ArgumentTypeDescription
integrationString!Token of the integration, as it appears in the sender's URL.

recordIntegrationUndecoded​

Service-only: callable with a service token that holds device:read, and refused for any user's access token. Adds count uplinks to the integration's undecoded tally and keeps the latest frame sample (hex, at most 1024 characters). It authenticates the integration with its bearer token, so a service token alone cannot write another sender's markers; a wrong token or a switched-off integration is refused and nothing is written. The ingest path batches these.

Returns Boolean!

ArgumentTypeDescription
countInt!How many uplinks to add; at least 1.
integrationString!Token of the integration, as it appears in the sender's URL.
sampleStringHex encoding of the latest frame, if the uplink carried one.
secretString!The bearer token the sender presented.

rejectAgentProposal​

(Preview: may change in a minor release.) A person rejects an agent proposal that is still waiting. Needs the write the action needs; an agent is refused.

Returns AgentProposal!

ArgumentTypeDescription
noteString(Preview: may change in a minor release.) Why, at most 512 bytes.
tokenString!(Preview: may change in a minor release.) The proposal's token.

rejectAutomationReview​

(Preview: may change in a minor release.) Reject a review. Requires an unscoped person with device:write and event:read.

Returns AutomationReview

ArgumentTypeDescription
noteString(Preview: may change in a minor release.) An optional decision note.
tokenString!(Preview: may change in a minor release.) The review token.

removeEntityRelationship​

Removes a single relationship edge: the explicit unassign. Returns true when it was removed and false when nothing has the token. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokenString!Token of the relationship edge to remove.

removeEntityRelationships​

Removes many relationship edges by token, for bulk remove-members and unassign. Requires device:write.

Returns Boolean!

ArgumentTypeDescription
tokens[String!]!Tokens of the relationship edges to remove.

renameDeviceProfile​

Changes a device profile's token and returns the profile. Allowed only while the profile has never been published and no device type currently adopts it; once it has been published, its token is permanent. Renaming to the current token succeeds without change. Fails if no profile has the token. Requires device:write.

Returns DeviceProfile!

ArgumentTypeDescription
newTokenString!The new token, in the usual token format. A blank value is refused, and a token another profile in the tenant holds is refused with CONFLICT.
tokenString!Current token of the profile.

replaceDevice​

Binds a new physical unit to an existing logical device identity: it retires every credential the outgoing unit could authenticate with, mints one for the incoming unit and writes an append- only replacement record, all in one transaction. The device's history, alarms, relationships, group membership and command vocabulary carry forward because none of them are touched. The new credential's secret material is readable only in this response. Requires device:write.

Returns DeviceReplaceResult!

ArgumentTypeDescription
requestDeviceReplaceRequest!The surviving device and the credential for the incoming unit.

resetDeviceProvisioning​

Delete the credentials self-registration issued to the device and end its sessions. Returns how many it removed. The device keeps its earmark, so it can register again; this is the way back from a revoke.

Returns Int!

ArgumentTypeDescription
deviceTokenString!Token of the device.

resolveAmbiguousBulkChangeLines​

Preview. Resolves ambiguous lines as confirmed or failed. Other lines are unchanged. Needs device:write and fleet:operate, a person's access token, a second factor verified within five minutes, and a note of 1 to 1000 characters. Refused with SECOND_FACTOR_REQUIRED, STEP_UP_REQUIRED or NOTE_REQUIRED otherwise.

Returns BulkChange!

ArgumentTypeDescription
requestBulkChangeAmbiguityResolution!Preview. The lines to resolve, the verdict and the note.

resolveIntegrationDevice​

Service-only: callable with a service token that holds device:read, and refused for any user's access token. The ingest path's one call for turning a sender's identifier into a device: it authenticates the integration with its bearer token, finds the device the alias names, checks that device's type is in the integration's scope, and, when no device in scope carries the alias, records the sighting (see unregisteredIntegrationDevices). Every outcome a sender can cause is an answer, not an error; a scheme other than the one the integration resolves by, or a value the scheme refuses, is refused with INVALID_VALUE. A switched-off integration is reported as DISABLED and is not a failed credential.

Returns IntegrationDeviceResolution!

ArgumentTypeDescription
integrationString!Token of the integration, as it appears in the sender's URL.
schemeString!The alias scheme; it must be the one the integration's identity names.
secretString!The bearer token the sender presented.
valueString!The sender's identifier for the device.

restoreDeviceConfiguration​

Makes a device's desired configuration equal to the content of one of its own earlier revisions. The device's shared attributes for its declared keys are set to that revision's values (declared keys the revision does not carry are removed) and a NEW revision is minted and delivered; earlier revisions are never changed. Nothing is minted when the device already holds that content. The whole call is refused, writing nothing, with CONFIGURATION_KEY_UNDECLARED when the device's current profile version no longer declares a key the revision carries, CONFIGURATION_VALUE_TYPE_MISMATCH when a value cannot be carried as the type now declared, CONFIGURATION_TOO_LARGE over the document size limit, and CONFIGURATION_CONFLICT when another write to the device's configuration committed while this one ran (retrying is safe). An unknown device or revision is NOT_FOUND. Requires device:write.

Returns DeviceConfiguration!

ArgumentTypeDescription
deviceTokenString!Token of the device to restore.
revisionInt!The revision number whose content to restore.

resumeBulkChange​

Preview. Resumes a PAUSED operation on the caller's behalf. The digest must be the current contract's. A change to the limits is applied only if it stays within the approved contract (CONTRACT_WIDENED otherwise); a limit that is still reached is THRESHOLD_STILL_EXCEEDED. Needs device:write and fleet:operate.

Returns BulkChange!

ArgumentTypeDescription
contractDigestString!Preview. The current contract's digest.
safetyBulkChangeSafetyInputPreview. New limits, within the approved contract; an omitted limit keeps its current value.
tokenString!Preview. The PAUSED bulk change's token.

reverseBulkChange​

Preview. Creates, in READY, a bulk change that reverses a DISPATCHED or ABORTED one: each selected line puts back the value its device held before the original. It is started like any other. Refused with ORIGINAL_STILL_DISPATCHING while the original can still apply lines, REVERSAL_NOT_REVERSIBLE for a reversal, EVIDENCE_EXPIRED once the original's lines are past retention, and NOTHING_TO_REVERSE when no selected line can be reversed. When applied, a line whose value changed after the original is refused with CHANGED_SINCE unless it is overridden; an override needs a second factor verified within five minutes (STEP_UP_REQUIRED, SECOND_FACTOR_REQUIRED). Creating again with the same token and the same request returns the first reversal. Needs device:write and fleet:operate.

Returns BulkChange!

ArgumentTypeDescription
requestBulkChangeReversalRequest!Preview. The reversal to create.

revokeDeviceCertificate​

Revoke a certificate under a trust anchor, on the platform's own authority: the certificate is refused from the next connect on every replica, whether or not it is registered, and deleting its credential or its device does not let it register again. It applies to any certificate on a verified path, a leaf or an intermediate. Name it with exactly one of certificatePem and fingerprintSha256. Revoking one already revoked returns the existing entry. The anchor's own certificate is refused (disable the anchor instead). The live broker sessions of the devices the certificate affects are ended: those whose credential is this leaf, or every device under the anchor when the certificate is a CA that a registered credential's chain was seen to use. The result's sessionsEnded says whether that was confirmed.

Returns DeviceRevokedCertificate!

ArgumentTypeDescription
anchorTokenString!Token of the trust anchor.
certificatePemStringThe certificate, PEM. Exactly one of this and fingerprintSha256.
fingerprintSha256StringSHA-256 of the certificate, hex. Exactly one of this and certificatePem.
reasonCertificateRevocationReasonDefaults to UNSPECIFIED.

revokeProvisionedDevices​

Disable every credential the profile issued, and end those devices' live sessions. Returns how many credentials it disabled. The profile still accepts new registrations; pair it with rotateProvisioningProfileSecret after a leak. A revoked device stays refused until resetDeviceProvisioning.

Returns Int!

ArgumentTypeDescription
profileTokenString!Token of the profile.

rollbackAssetType​

Re-points an asset type's active version at an earlier published one and returns the type. The draft is untouched and nothing is deleted, so the type can be rolled forward again. Assets already stored are not rechecked or rewritten; the contract applies when a property document is next written. Requires device:write.

Returns AssetType!

ArgumentTypeDescription
tokenString!Token of the asset type to roll back.
versionInt!The published version to make active again.

rollbackDeviceProfile​

Makes an existing published version the one devices use again. The draft and the version history are untouched, so a later version can be made active the same way. Fails if the profile or the version does not exist, and is refused with LIMIT_EXCEEDED when the version carries more calculated metrics than the tenant's tier allows (a version without any is never refused for this). Returns the updated profile. Requires device:write.

Returns DeviceProfile!

ArgumentTypeDescription
breakGlassReasonString(Preview: may change in a minor release.) Why the active version of a protected profile is being changed outside review. Required (with a second factor verified recently) on a protected profile, where it is recorded with the person; ignored otherwise.
tokenString!Token of the profile.
versionInt!Number of the published version to make active.

rollbackEntityGroup​

Points a dynamic group's active version back at an existing version and returns the group. Non- destructive: no version is removed and the draft selector is untouched. Requires device:write.

Returns EntityGroup!

ArgumentTypeDescription
tokenString!Token of the dynamic group to roll back.
versionInt!The published version to make active again.

rotateIntegrationToken​

Replace an integration's bearer token with a new one, returned once. The old token stops working at once and there is no overlap.

Returns IntegrationSecretResult!

ArgumentTypeDescription
tokenString!Token of the integration.

rotateProvisioningProfileSecret​

Replace a profile's provision secret with a new one, returned once. The old secret stops working at once and there is no overlap (overlap is a second profile with its own key). Devices already registered are unaffected. This is also what brings a profile created before the server generated secrets into service.

Returns ProvisioningProfileSecretResult!

ArgumentTypeDescription
tokenString!Token of the profile.

runAutomationReview​

(Preview: may change in a minor release.) Compare a profile draft with its published baseline. Requires an unscoped person with device:write and event:read.

Returns AutomationReview

ArgumentTypeDescription
inputRunAutomationReviewInput!(Preview: may change in a minor release.) The draft, devices, windows and expectations to review.

setAlarmDisposition​

Labels the CURRENT cycle of an alarm with an operator's verdict (see AlarmDisposition) and returns the alarm. Only the current cycle can be labelled: once the alarm is raised again, the earlier cycle's disposition can be read but no longer written. Labelling changes nothing else about the alarm and emits no alarm event; labelling a cleared alarm is the ordinary case. Labelling a cycle again replaces its disposition. The labelling identity is the authenticated subject, recorded server-side. An alarm deleted while the label is being written answers NOT_FOUND, as an unknown token does.

Requires alarm:write. A member whose access is limited to some customers cannot label (FORBIDDEN): labels are ground truth for the tenant's rules.

Returns Alarm!

ArgumentTypeDescription
labelAlarmDispositionLabel!The verdict. A value that is not an AlarmDispositionLabel is refused when the request is validated.
noteStringWhy, at most 1000 characters. Empty or omitted is no note.
raisedTimeStringThe cycle being labelled, as the alarm's raisedTime was served. When given, the label is refused if the alarm has been raised again since ("alarm was modified by another writer; reload and try again"), so a verdict on one cycle never lands on the next. Omitted labels the alarm's current cycle.
tokenString!The alarm, by its token.

setAssetParent​

Places an asset under a parent, replacing whatever parent it had, and returns the relationship edge. Refused when it would make an asset its own ancestor, give it a second parent, or push the tree past its depth limit of 64. The asset's own children travel with it. Requires device:write.

Returns EntityRelationship!

ArgumentTypeDescription
childTokenString!Token of the asset to place under the parent.
parentTokenString!Token of the asset to become its parent.

setAutomationReviewPolicy​

(Preview: may change in a minor release.) Set automation protection. Protecting requires every enabled rule of the active version to read only recorded telemetry: no device attributes, no calculated metric reading device constants, no group scope, no relationship anchors (anchors[...], anchorType) and no geofence position (geo / inFence). Tightening applies at once. Loosening (removing protection, fewer approvals, allowing self-approval, a longer approval lifetime or step-up age) waits for a second person's approval, or for 24 hours when self-approval is allowed. Requires device:write and a person's own unscoped session.

Returns SetAutomationReviewPolicyResult

ArgumentTypeDescription
profileTokenString!(Preview: may change in a minor release.) The profile token.
settingsAutomationReviewPolicyInput!(Preview: may change in a minor release.) The protection settings to request.

setDeviceProfileConfigurationDeclaration​

Replaces a profile's draft device-visible configuration declaration with the given keys; an empty list withdraws it. At most 256 keys; each key must follow the attribute-key grammar, be unique, and carry a valid value type. The whole call is refused if any key is invalid. Published versions are immutable: this changes only what the next publish freezes. Returns the updated profile. Requires device:write.

Returns DeviceProfile!

ArgumentTypeDescription
keys[ConfigurationKeyInput!]!The complete new declaration, replacing the current one.
tokenString!Token of the profile.

setDeviceProfileDecoder​

Saves a profile's DRAFT payload decoder, replacing any earlier one. The document is parsed strictly (an unknown key is refused) and compiled in full against the profile's draft metrics: every scalar output key must be a declared, measured metric of the profile (a calculated metric cannot be one, and lorawan. keys are reserved for link metrics), a key may be written once per section, and every expression must type-check and fit its cost ceiling. The refusal is INVALID_DECODER and names the failing expression. A WASM document is refused with UNSUPPORTED_DECODER_KIND. Saved vectors need not pass here; they gate the publish. Published versions keep their decoder: this changes only what the next publish freezes. Returns the updated profile. Requires device:write.

Returns DeviceProfile!

ArgumentTypeDescription
documentString!The decoder document as JSON text, at most 32 KiB.
profileTokenString!Token of the profile.

setEntityAttribute​

Sets an entity attribute, replacing the value when the same entity, scope and key already has one. Requires device:write.

Returns EntityAttribute!

ArgumentTypeDescription
requestEntityAttributeSetRequest!The attribute to set.

setEntityGroupAccessScope​

Make a group an access scope, or stop it being one, and return the group. A member whose access is limited to the group sees the devices in it at its active version, so publishing or rolling the group back changes what they see, and a device whose attributes move it into or out of the group appears or disappears for them without anyone editing the member. Records written about a device while it is in the group (events, alarms, commands, update assignments) stay visible to them afterwards. Only a published dynamic group of devices can be one (INVALID_VALUE otherwise), and a tenant may have at most 32 (LIMIT_EXCEEDED). Setting what is already set changes nothing. A deleted group's token is never reused, so a member limited to it is never handed a new group's devices. Requires device:write.

Returns EntityGroup!

ArgumentTypeDescription
enabledBoolean!True to make it an access scope, false to stop it being one.
tokenString!Token of the group.

setFacetKey​

Declares a facet key by its natural key, memberType and key, creating it or rewriting the existing declaration. Requires device:write.

Returns FacetKey!

ArgumentTypeDescription
requestFacetKeySetRequestThe facet key declaration to upsert.

setInstalledPosition​

Records where a device or an asset was installed. Needs device:write. The position is refused, before anything is stored, when it is not a finite WGS84 coordinate. An entity outside the caller's scope is NOT_FOUND.

Returns InstalledPosition!

ArgumentTypeDescription
familyPositionFamily!Whether token names a device or an asset.
positionInstalledPositionInput!The position to record.
tokenString!The token of the device or asset.

setSemanticContext​

Replaces the tenant's semantic context and returns it. Enabling a pack or declaring a custom prefix makes its terms bindable; a pack this build does not ship, a custom prefix that shadows a pack's, or overlapping namespaces fail with INVALID_ARGUMENT. A context that would leave any stored binding unexplained (it stops enabling a pack, or declaring a custom namespace, that a binding uses) is refused with SEMANTIC_CONTEXT_IN_USE and extensions.references, the number of such bindings; keep the vocabulary or unbind them first. Two first sets for one tenant at once: the loser fails with CONFLICT, and may read the context and retry. Requires device:write, and a member limited to part of the tenant is refused. Null only on an error, which says why.

Returns SemanticContext

ArgumentTypeDescription
requestSemanticContextRequest!The context to store. It replaces the stored one whole.

startBulkChange​

Preview. Starts a READY operation. The caller presents the contract digest they reviewed; a different one is CONTRACT_DIGEST_MISMATCH. The caller approves the contract and the operation runs on their behalf. Refused with BULK_CHANGES_NOT_ACTIVATED when the database does not enforce the device attribute writer protocol. Needs device:write and fleet:operate.

Returns BulkChange!

ArgumentTypeDescription
contractDigestString!Preview. The contract digest the caller reviewed.
tokenString!Preview. The READY bulk change's token.

unrevokeDeviceCertificate​

Remove a manual revocation. True if there was one. The certificate is admitted again from the next connect unless something else refuses it; nothing is kicked, and the device reconnects on its own.

Returns Boolean!

ArgumentTypeDescription
anchorTokenString!Token of the trust anchor.
fingerprintSha256String!SHA-256 of the certificate, hex.

updateAlarmSuppressionWindow​

Edit a whole visible window, authorizing both existing and resulting reach.

Returns AlarmSuppressionWindow!

ArgumentTypeDescription
requestAlarmSuppressionWindowUpdateRequest!Partial edit with omitted, null and value states.
tokenString!Token of the window to edit.

updateArea​

Applies a partial update to an area, identified by token. Pass expectedUpdatedAt to refuse the write if the area changed since it was read. Requires device:write.

Returns Area!

ArgumentTypeDescription
expectedUpdatedAtStringApply only if updatedAt still equals this value; returns STALE_WRITE if the record changed. Reload before retrying. Omit for last-write-wins.
requestAreaUpdateRequest!The fields to change.
tokenString!Token of the area to update.

updateAreaType​

Applies a partial update to an area type, identified by token. Requires device:write.

Returns AreaType!

ArgumentTypeDescription
requestAreaTypeUpdateRequest!The fields to change.
tokenString!Token of the area type to update.

updateAsset​

Applies a partial update to an asset, identified by token. Pass expectedUpdatedAt to refuse the write if the asset changed since it was read. Requires device:write.

Returns Asset!

ArgumentTypeDescription
expectedUpdatedAtStringApply only if updatedAt still equals this value; returns STALE_WRITE if the record changed. Reload before retrying. Omit for last-write-wins.
requestAssetUpdateRequest!The fields to change.
tokenString!Token of the asset to update.

updateAssetType​

Applies a partial update to an asset type, identified by token. Editing the draft property contract changes nothing assets are validated against until the type is published. Requires device:write.

Returns AssetType!

ArgumentTypeDescription
requestAssetTypeUpdateRequest!The fields to change.
tokenString!Token of the asset type to update.

updateCommandDefinition​

Partially updates a draft command definition and returns it. Fails if no command definition has the token. Requires device:write.

Returns CommandDefinition!

ArgumentTypeDescription
requestCommandDefinitionUpdateRequest!The fields to change.
tokenString!Token of the command definition to update.

updateCustomer​

Applies a partial update to a customer, identified by token. Pass expectedUpdatedAt to refuse the write if the customer changed since it was read. Requires device:write.

Returns Customer!

ArgumentTypeDescription
expectedUpdatedAtStringApply only if updatedAt still equals this value; returns STALE_WRITE if the record changed. Reload before retrying. Omit for last-write-wins.
requestCustomerUpdateRequest!The fields to change.
tokenString!Token of the customer to update.

updateCustomerType​

Applies a partial update to a customer type, identified by token. Pass expectedUpdatedAt to refuse the write if the type changed since it was read. Requires device:write.

Returns CustomerType!

ArgumentTypeDescription
expectedUpdatedAtStringApply only if updatedAt still equals this value; reload after a stale-write error. Omit for last-write-wins.
requestCustomerTypeUpdateRequest!The fields to change.
tokenString!Token of the customer type to update.

updateDetectionRule​

Applies a partial update to a detection rule, identified by token. Omitted fields are kept, null clears a clearable field, and the required fields (deviceProfileToken, definition, enabled) refuse null. Requires device:write, plus the authority each action in the rule's definition needs.

Returns DetectionRule!

ArgumentTypeDescription
requestDetectionRuleUpdateRequest!The fields to change.
tokenString!Token of the detection rule to update.

updateDevice​

Partially updates a device and returns it. Fails if no device has the token. Requires device:write.

Returns Device!

ArgumentTypeDescription
breakGlassReasonString(Preview: may change in a minor release.) Why the device is being moved outside review. Required (with a second factor verified recently) on moving a device out of a type bound to a protected profile, where it is recorded with the person; ignored otherwise.
requestDeviceUpdateRequest!The fields to change.
tokenString!Token of the device to update.

updateDeviceCredential​

Applies a partial update to a device credential, identified by token. Setting credentialId on an ACCESS_TOKEN credential rotates the token: the old one stops working at once and the new one is returned once, in this response. Omitting credentialValue leaves the stored secret in place. Requires device:write.

Returns DeviceCredential!

ArgumentTypeDescription
requestDeviceCredentialUpdateRequest!The fields to change.
tokenString!Token of the device credential to update.

updateDeviceProfile​

Partially updates a device profile's draft and returns it. Fails if no profile has the token. Requires device:write.

Returns DeviceProfile!

ArgumentTypeDescription
requestDeviceProfileUpdateRequest!The fields to change.
tokenString!Token of the profile to update.

updateDeviceTrustAnchor​

Update a trust anchor. Disabling one ends the live sessions of the devices that rely on it.

Returns DeviceTrustAnchor!

ArgumentTypeDescription
requestDeviceTrustAnchorUpdateRequest!The fields to change.
tokenString!Token of the anchor.

updateDeviceType​

Partially updates a device type and returns it. Fails if no device type has the token. Requires device:write.

Returns DeviceType!

ArgumentTypeDescription
breakGlassReasonString(Preview: may change in a minor release.) Why the device type is being re-pointed outside review. Required (with a second factor verified recently) on a profile re-point to or from a protected profile, where it is recorded with the person; ignored otherwise.
requestDeviceTypeUpdateRequest!The fields to change.
tokenString!Token of the device type to update.

updateEntityGroup​

Applies a partial update to an entity group, identified by token. Member family and membership mode cannot change. Pass expectedUpdatedAt to refuse the write if the group changed since it was read. Requires device:write.

Returns EntityGroup!

ArgumentTypeDescription
expectedUpdatedAtStringApply only if updatedAt still equals this value; returns STALE_WRITE if the record changed. Reload before retrying. Omit for last-write-wins.
requestEntityGroupUpdateRequest!The fields to change.
tokenString!Token of the entity group to update.

updateEntityRelationshipType​

Applies a partial update to a relationship type, identified by token. Requires device:write.

Returns EntityRelationshipType!

ArgumentTypeDescription
requestEntityRelationshipTypeUpdateRequest!The fields to change.
tokenString!Token of the entity relationship type to update.

updateGeoFence​

Applies a partial update to a geofence, identified by token, which is immutable. Needs the same authorities as creation, for the same reason. Changing the geometry mints a new fence-set version; changing only name, description or metadata does not.

Returns GeoFence!

ArgumentTypeDescription
requestGeoFenceUpdateRequest!The fields to change.
tokenString!Token of the geofence to update.

updateIntegration​

Update an integration. Neither its token nor its type can be changed.

Returns Integration!

ArgumentTypeDescription
requestIntegrationUpdateRequest!The fields to change.
tokenString!Token of the integration.

updateMaintenanceWindow​

Update a maintenance window. A partial update: an omitted field is left alone. Commands already waiting on the window follow the new schedule within about a minute. Requires device:write.

Returns MaintenanceWindow!

ArgumentTypeDescription
requestMaintenanceWindowUpdateRequest!The fields to change.
tokenString!Token of the window to update.

updateMetricDefinition​

Partially updates a draft metric definition and returns it. Fails if no metric definition has the token. Requires device:write.

Returns MetricDefinition!

ArgumentTypeDescription
requestMetricDefinitionUpdateRequest!The fields to change.
tokenString!Token of the metric definition to update.

updateProvisioningProfile​

Applies a partial update to a provisioning profile, identified by token. It cannot change the credential type or the secret. Requires device:write.

Returns ProvisioningProfile!

ArgumentTypeDescription
requestProvisioningProfileUpdateRequest!The fields to change.
tokenString!Token of the provisioning profile to update.

Subscriptions​

alarmStream

alarmStream​

Streams alarm state changes for the subscriber's tenant, from subscribe time onward with no backfill; use the alarm queries for current state. Delivery is best-effort: an event can be dropped (a transient publish failure or a slow consumer), and the stored alarm is the source of truth. A client merging this stream into a live list must re-run the alarm queries on reconnect and periodically, so a dropped event cannot leave a ghost row, such as a missed CLEARED showing an active alarm. The optional filters narrow the feed to one originator, state, severity or alarm key. When originatorToken is given, originatorType is required, and the token is resolved to its id once at subscribe time.

Returns AlarmEvent!

ArgumentTypeDescription
alarmKeyStringOnly events of alarms with this alarm key.
anchorAlarmAnchorOnly events of alarms stamped with this anchor (see AlarmAnchor), judged on every pushed event, with the same limit to the subscriber's own devices as the queries. A customer outside the subscriber's access is refused when subscribing.
originatorTokenStringOnly events of the originator with this token. Requires originatorType.
originatorTypeStringEntity type of the originator to follow, for example device. Required when originatorToken is set.
severityStringOnly events whose alarm is at this severity after the change.
stateStringOnly events whose alarm is in this state after the change: ACTIVE or CLEARED.

Objects​

ActiveProfileRules · ActiveProfileRulesPage · AgentAlarmProposalPreview · AgentProposal · AgentProposalApproval · AgentProposalOutcome · AgentProposalSearchResults · Alarm · AlarmAckRefusal · AlarmDeviceTypeCount · AlarmDisposition · AlarmDispositionSearchResults · AlarmEvent · AlarmLifecycle · AlarmSearchResults · AlarmSeverityCount · AlarmSuppression · AlarmSuppressionInterval · AlarmSuppressionStatus · AlarmSuppressionTarget · AlarmSuppressionWindow · AlarmSuppressionWindowSearchResults · Area · AreaSearchResults · AreaType · AreaTypeSearchResults · Asset · AssetSearchResults · AssetType · AssetTypeSearchResults · AssetTypeVersion · AuditEvent · AuditEventSearchResults · AutomationReview · AutomationReviewApproval · AutomationReviewBreakGlass · AutomationReviewChange · AutomationReviewChangeCounts · AutomationReviewDeviceCoverage · AutomationReviewExpectationInput · AutomationReviewExpectationResult · AutomationReviewFidelity · AutomationReviewIntentContent · AutomationReviewMetricCount · AutomationReviewPolicy · AutomationReviewPolicyChange · AutomationReviewPolicySettings · AutomationReviewProfileChange · AutomationReviewReading · AutomationReviewSearchResults · AutomationReviewWindowResult · AutomationReviewWindowSpec · BatchEnqueueRefusal · BulkAcknowledgeAlarmsResult · BulkChange · BulkChangeEvidenceCapability · BulkChangeLine · BulkChangeLineSearchResults · BulkChangePlan · BulkChangePlanRefusal · BulkChangePlanRefusalCount · BulkChangeProgress · BulkChangeReadiness · BulkChangeResumePreview · BulkChangeReversalPreview · BulkChangeSafety · BulkChangeSearchResults · CalculatedBackfillRosterEntry · CalculatedBackfillRosterPage · CalculatedMetricPlan · CalculatedMetricPlanInput · CalculatedMetricPlanMetric · CommandChannelAccess · CommandDefinition · CommandDefinitionSearchResults · CommandDispatchHold · CommandDispatchImpact · CommandDispatchSchedule · CommandEnqueueVerdict · ConfigurationKey · CustomPrefix · Customer · CustomerSearchResults · CustomerType · CustomerTypeSearchResults · DetectionRule · DetectionRuleSearchResults · Device · DeviceAlias · DeviceClaim · DeviceCommandVocabulary · DeviceConfiguration · DeviceConfigurationReport · DeviceConfigurationRevision · DeviceConfigurationRevisionSearchResults · DeviceConstant · DeviceConstantsEntry · DeviceConstantsPage · DeviceCredential · DeviceCredentialSearchResults · DeviceDecoderPlan · DeviceGroupTargetPage · DeviceImportResult · DeviceImportRowResult · DeviceLocationCapability · DeviceLocationDeclaration · DeviceMetricVocabulary · DeviceProfile · DeviceProfileActivation · DeviceProfileActivationPage · DeviceProfileSearchResults · DeviceProfileVersion · DeviceReplaceResult · DeviceReplacement · DeviceReplacementSearchResults · DeviceRevocationList · DeviceRevocationListResult · DeviceRevokedCertificate · DeviceRevokedCertificateSearchResults · DeviceRosterEntry · DeviceRosterPage · DeviceScopeAnchors · DeviceSearchResults · DeviceThresholdAttribute · DeviceThresholdAttributePage · DeviceTrustAnchor · DeviceTrustAnchorSearchResults · DeviceType · DeviceTypeSearchResults · DisabledDevicePage · EntityAttribute · EntityAttributeSearchResults · EntityGroup · EntityGroupMember · EntityGroupMemberSearchResults · EntityGroupSearchResults · EntityGroupVersion · EntityRef · EntityRelationship · EntityRelationshipSearchResults · EntityRelationshipType · EntityRelationshipTypeSearchResults · FacetKey · FacetKeySearchResults · FacetValueImportRowResult · FleetOperationReadiness · GeoFence · GeoFenceGeometry · GeoFenceManifestEntry · GeoFenceSearchResults · GeoFenceSetManifest · GeoFenceSetSnapshot · GeoFenceSnapshotEntry · GeoFenceSnapshotEntrySearchResults · InstalledPosition · Integration · IntegrationDecoderPlan · IntegrationDeviceResolution · IntegrationSearchResults · IntegrationSecretResult · MaintenanceWindow · MaintenanceWindowOpening · MaintenanceWindowSearchResults · MetricDefinition · MetricDefinitionSearchResults · MetricFormulaTest · PayloadDecoder · PayloadDecoderError · PayloadDecoderFunction · PayloadDecoderHealth · PayloadDecoderReading · PayloadDecoderSample · PayloadDecoderSkip · PayloadDecoderTestResult · PayloadDecoderVectorResult · ProvisioningProfile · ProvisioningProfileSearchResults · ProvisioningProfileSecretResult · PublishedCommand · PublishedMetric · PublishedProfileRule · SearchResultsPagination · SelectorPreview · SemanticContext · SemanticPackVersion · SemanticTerm · SetAutomationReviewPolicyResult · UnregisteredIntegrationDevice · UnregisteredIntegrationDeviceSearchResults · X509Certificate

ActiveProfileRules​

object

A published profile's active version, as the detection engine should hold it.

FieldTypeDescription
activeSinceString!When this version became active (published, or rolled back to), as an RFC 3339 timestamp.
profileTokenString!Token of the device profile.
rules[PublishedProfileRule!]!The version's enabled detection rules.
versionTokenString!The active version's token, {profileToken}@{version}: the value resolved events carry and rules are keyed on.

ActiveProfileRulesPage​

object

One page of published profiles' active versions.

FieldTypeDescription
entries[ActiveProfileRules!]!The profiles on this page.
nextCursorStringThe cursor to pass as afterId for the next page; null when the walk is complete. Treat it as opaque.

AgentAlarmProposalPreview​

object

(Preview: may change in a minor release.) What the platform found about one alarm a proposal names, now.

FieldTypeDescription
acknowledgedBoolean!(Preview: may change in a minor release.) Whether the alarm is acknowledged.
alarmTokenString!(Preview: may change in a minor release.) The alarm's token.
hidesLiveConditionBoolean!(Preview: may change in a minor release.) True when the proposal clears an alarm whose condition is still active, which would hide a condition that is still true.
stateString!(Preview: may change in a minor release.) The alarm's state, ACTIVE or CLEARED.

AgentProposal​

object

(Preview: may change in a minor release.) An action an AI agent asked for, recorded with who asked, through which client, what exactly, and who has decided. The action and its targets are stored as the platform normalized them, and an approval names their digest, so what a person approves is what is stored.

FieldTypeDescription
approvals[AgentProposalApproval!]!(Preview: may change in a minor release.) The approvals recorded so far.
clientAttestedBoolean!(Preview: may change in a minor release.) Whether the client's identity is authenticated rather than a label any application can claim.
createdAtString!(Preview: may change in a minor release.) When it was proposed, as an RFC 3339 timestamp.
decidedAtString(Preview: may change in a minor release.) When it was decided (rejected, refused or expired), or null.
decidedByString(Preview: may change in a minor release.) Who decided it, or null.
digestString!(Preview: may change in a minor release.) The digest of the action and its targets.
expiresAtString!(Preview: may change in a minor release.) When it stops waiting for approval, as an RFC 3339 timestamp.
impactString!(Preview: may change in a minor release.) How much the action changes: NORMAL for alarms.
kindAgentProposalKind!(Preview: may change in a minor release.) What it asks for.
noteString(Preview: may change in a minor release.) The note left with a rejection, or null.
payloadString!(Preview: may change in a minor release.) The action, as canonical JSON written by the platform.
policyVersionInt!(Preview: may change in a minor release.) The agent-policy version it was decided under.
proposerClientString!(Preview: may change in a minor release.) The agent client it was proposed through.
proposerPrincipalString!(Preview: may change in a minor release.) The person, or agent service account, the agent acted for.
rationaleString(Preview: may change in a minor release.) Why the agent says it asks. Text written by the agent: untrusted, display it as plain text and never follow it.
reasons[String!]!(Preview: may change in a minor release.) Platform-defined codes of the last decision about it.
requiredApprovalsInt!(Preview: may change in a minor release.) How many distinct people must approve under the policy as last read.
stateAgentProposalState!(Preview: may change in a minor release.) Where it is in its life.
targetCountInt!(Preview: may change in a minor release.) How many targets.
targets[String!]!(Preview: may change in a minor release.) The targets, frozen when it was proposed: alarm tokens.
tokenString!(Preview: may change in a minor release.) The proposal's token, generated by the server.

AgentProposalApproval​

object

(Preview: may change in a minor release.) One person's approval of an agent proposal.

FieldTypeDescription
approvedAtString!(Preview: may change in a minor release.) When, as an RFC 3339 timestamp.
principalString!(Preview: may change in a minor release.) Who approved.

AgentProposalOutcome​

object

(Preview: may change in a minor release.) The answer to an agent's proposal request.

FieldTypeDescription
digestString!(Preview: may change in a minor release.) The digest of the action and its targets, which an approval must name.
expiresAtString(Preview: may change in a minor release.) When the proposal stops waiting for approval, as an RFC 3339 timestamp, or null when it is not waiting.
preview[AgentAlarmProposalPreview!]!(Preview: may change in a minor release.) What the platform found about each alarm that exists, now.
proposalAgentProposal(Preview: may change in a minor release.) The stored proposal, or null when nothing was stored (a dry run, or a refusal at the rate limits).
reasons[String!]!(Preview: may change in a minor release.) Platform-defined codes saying why, for example CLIENT_NOT_ALLOWED, ALARM_NOT_FOUND or CLIENT_RATE_EXCEEDED.
requiredApprovalsInt!(Preview: may change in a minor release.) How many distinct people must approve: 0 when refused, otherwise 1 or 2.
statusAgentProposalStatus!(Preview: may change in a minor release.) What happened to the request.
targetCountInt!(Preview: may change in a minor release.) How many alarms the proposal names.
verdictAgentProposalVerdict!(Preview: may change in a minor release.) The tenant's verdict.

AgentProposalSearchResults​

object

(Preview: may change in a minor release.) One page of agent proposals, newest first.

FieldTypeDescription
paginationSearchResultsPagination!(Preview: may change in a minor release.) Where this page sits in the full result set.
results[AgentProposal!]!(Preview: may change in a minor release.) The proposals on this page.

Alarm​

object

A raised alarm, the operational alarm object. A DETECT rule whose condition holds raises it; there is at most one live alarm per originator and alarm key, so a repeated crossing is folded into the same row and its severity escalates in place. Its lifecycle is state (ACTIVE or CLEARED) crossed with acknowledged. The originator is addressed by originatorType and originatorId, and is always a device today. Requires alarm:read; a member whose access is limited to some customers sees only the alarms of its own devices.

Implements Model, TokenReference, MetadataEntity

FieldTypeDescription
acknowledgedBoolean!Whether an operator has acknowledged the alarm. Independent of state: either an ACTIVE or a CLEARED alarm may be acknowledged. Raising the alarm again starts a new cycle and resets this to false.
acknowledgedByStringSubject that acknowledged the alarm, taken from the authenticated caller and never from client input. Null until acknowledged.
acknowledgedTimeStringWhen an operator acknowledged the alarm, as an RFC 3339 timestamp. Null until acknowledged, and reset when the alarm is raised again.
alarmKeyString!The alarm key the raising rule targets. It names which alarm on the originator this is; together with the originator it is unique among live alarms.
clearedTimeStringWhen the alarm was last cleared, as an RFC 3339 timestamp. Null while the alarm is ACTIVE.
createdAtStringWhen the alarm row was first created, as an RFC 3339 timestamp. A re-raise reuses the row, so this does not move; see raisedTime for the current cycle.
deletedAtStringWhen the alarm was deleted, as an RFC 3339 timestamp; null for a live alarm.
dispositionAlarmDispositionThe disposition of this alarm's current cycle (see setAlarmDisposition), or null when nobody has labelled it. A disposition belongs to the cycle it was written on: when the alarm is raised again, the new cycle starts unlabelled and the earlier disposition stays with the earlier cycle, where alarmDispositions still finds it. A cycle is named by its raisedTime, so two cycles of one alarm raised at the same instant share one disposition.
idID!Server-assigned numeric identifier, as a string. Address an alarm by its token instead where you can.
lastValueFloatThe reading that most recently raised a contribution to this alarm. Only a value-bearing raise moves it; a resolve, or a raise from silence with no value, leaves it unchanged. Null when no reading has been recorded.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
metricKeyString!Key of the measurement the raising rule watches, kept for display.
originatorIdID!Numeric id of the originator within the tenant, as a string. Use originatorToken to address it by token.
originatorTokenStringThe originator's token, resolved on demand. Null when the originator is not a device or no longer exists. Matches AlarmEvent.originatorToken, so a live list and a reconciling query address the originator the same way.
originatorTypeString!Entity type of the originator, the thing the alarm is about. Always device today.
raisedDuringSuppressionStringWindow token stamped when the current cycle began, or null. "restricted" for scoped humans when the window is hidden or deleted.
raisedTimeStringWhen the current cycle began, as an RFC 3339 timestamp: the first raise, or the most recent return to ACTIVE after a clear. Earlier cycles are not kept on the row.
severityString!Current severity tier: CRITICAL, MAJOR, MINOR, WARNING or INDETERMINATE. It escalates in place to the highest tier among the conditions currently holding. Treat unknown values as a tier you do not recognise.
stateString!Lifecycle state: ACTIVE while a condition holds, CLEARED once every contributing condition has resolved or an operator cleared it. A cleared alarm that is raised again returns to ACTIVE on the same row.
suppressionAlarmSuppressionLive suppression now; null for cleared alarms, non-device originators or alarms with no matching window.
tokenString!Identifier of the alarm, unique within the tenant. It is stable for the alarm's whole life, across clears and re-raises.
updatedAtStringWhen the alarm row was last written, as an RFC 3339 timestamp.

AlarmAckRefusal​

object

One alarm a bulk acknowledge did not act on, and why.

FieldTypeDescription
codeString!Machine-readable classification of the refusal. ALARM_NOT_FOUND, meaning the token names no alarm, is the only value today; acknowledgement is idempotent and independent of ACTIVE or CLEARED, so no alarm state refuses it. Branch on this rather than on reason, and treat unknown values as a refusal.
reasonString!Why the alarm was refused, in client-safe terms. For display only; do not parse it.
tokenString!The alarm this refusal is about, exactly as the caller spelled it.

AlarmDeviceTypeCount​

object

How many matching alarms are raised on devices of one type at one severity. A type with alarms at several severities has one entry per severity.

FieldTypeDescription
countInt!How many matching alarms have this device type and severity.
deviceTypeDeviceType!The device type the counted alarms' devices have.
severityString!The severity of the counted alarms.

AlarmDisposition​

object

An operator's verdict on one alarm cycle: was the condition real, and did it need anyone? It is ground truth for measuring a rule, not for operating one. A cycle is one raise of an alarm, named by the raisedTime the alarm had when it was labelled, so two cycles of one alarm raised at the same instant share one disposition.

FieldTypeDescription
alarmAlarmThe alarm itself, or null when the caller cannot read it any more (a member whose access is limited to some customers, after the alarm was raised again for another customer).
alarmIdID!The alarm the labelled cycle belongs to, by its id.
alarmTokenString!The alarm the labelled cycle belongs to, by its token. Always served, even when the caller can no longer read the alarm itself (see alarm).
labelAlarmDispositionLabel!The verdict. New values may be added in a later release; treat a value you do not know as unhandled.
noteStringWhy, in the labeller's words. Null when no note was given.
raisedTimeString!The labelled cycle: the alarm's raisedTime when the label was written.
recordedByStringThe authenticated subject that last wrote the label, recorded server-side.
recordedTimeString!When the label was last written.

AlarmDispositionSearchResults​

object

One page of alarm disposition labels, newest cycle first.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[AlarmDisposition!]!The labels on this page.

AlarmEvent​

object

A single alarm state change, pushed live to a subscriber. It is the transition envelope emitted by the alarm engine and the operator actions, not the stored Alarm row: it carries the kind of transition and, for a severity move, the prior severity, alongside a snapshot of the alarm after the change. Address the alarm by alarmToken to re-query it.

FieldTypeDescription
acknowledgedBoolean!Whether the alarm is acknowledged after the transition.
acknowledgedByStringSubject that acknowledged the alarm, or null when it is not acknowledged.
alarmKeyString!The alarm key of the alarm, as on Alarm.alarmKey.
alarmTokenString!Token of the alarm this event is about. Stable across the alarm's life.
clearReasonAlarmClearReasonThe lifecycle reason for clearing the alarm; absent for ordinary clears.
eventTypeString!The transition: RAISED, ESCALATED, DEESCALATED, CLEARED or ACKNOWLEDGED. Treat an unknown value as a change you do not handle.
lastValueFloatThe alarm's last recorded reading after the transition, as on Alarm.lastValue. Null when none.
metricKeyString!Key of the measurement the raising rule watches, as on Alarm.metricKey.
occurredTimeString!The event time that drove the transition, as an RFC 3339 timestamp: the measurement time, or the time of the operator's acknowledge or clear.
originatorIdID!Numeric id of the originator within the tenant, as a string.
originatorTokenStringThe originator's token, resolved on demand. Null when the originator is not a device or no longer exists.
originatorTypeString!Entity type of the originator. Always device today.
previousSeverityStringThe severity held before an in-place change. Set only for ESCALATED and DEESCALATED; null otherwise.
raisedDuringSuppressionStringWindow token stamped at this cycle's raise; null when absent, "restricted" for scoped humans when hidden or deleted.
raisedTimeStringWhen the alarm's current cycle began, as an RFC 3339 timestamp. Pair it with occurredTime to show how long the alarm has been active.
severityString!The alarm's severity after the transition.
stateString!The alarm's state after the transition: ACTIVE or CLEARED.
suppressedUntilStringLive suppression deadline carried by the event, as RFC 3339; null when absent.
suppressionWindowTokenStringLive window token carried by the event; null when absent, "restricted" for scoped humans when hidden or deleted.

AlarmLifecycle​

object

An alarm's existence and lifecycle state for service-plane reconciliation.

FieldTypeDescription
stateString!The alarm's lifecycle state: ACTIVE or CLEARED.
tokenString!The alarm's unique token.

AlarmSearchResults​

object

One page of alarms.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[Alarm!]!The alarms on this page.

AlarmSeverityCount​

object

How many matching alarms are at one severity.

FieldTypeDescription
countInt!How many matching alarms have this severity.
severityString!The severity of the counted alarms.

AlarmSuppression​

object

The live window currently holding an alarm's pages.

FieldTypeDescription
untilString!Exclusive live deadline, as an RFC 3339 timestamp.
windowAlarmSuppressionWindowThe window, or null when it is deleted or outside the caller's whole-window visibility.
windowTokenString!Window token; "restricted" for scoped humans when the window is hidden or deleted. Service tokens receive the real token.

AlarmSuppressionInterval​

object

A half-open interval in which a window suppresses paging.

FieldTypeDescription
endString!Exclusive closing instant, as an RFC 3339 timestamp.
startString!Inclusive opening instant, as an RFC 3339 timestamp.

AlarmSuppressionStatus​

object

Live suppression for one visible alarm.

FieldTypeDescription
alarmTokenString!Token of the visible alarm.
severityString!The alarm's current severity tier.
stateString!The alarm's current state: ACTIVE or CLEARED.
suppressionAlarmSuppressionCurrent suppression, or null when paging is not held.

AlarmSuppressionTarget​

object

One population of devices covered by a window.

FieldTypeDescription
tokenStringTarget token; null only for TENANT.
typeString!DEVICE, DEVICE_TYPE, ENTITY_GROUP, AREA, ASSET, CUSTOMER or TENANT.

AlarmSuppressionWindow​

object

An operator-declared window that holds paging while alarms continue to track conditions.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
alarmKeys[String!]!Alarm keys to suppress; an empty list matches every key.
bypassSeverityStringAlarms at or above this severity bypass the window; null disables bypass.
createdAtStringCreation instant, as an RFC 3339 timestamp.
createdByStringSubject that created the window, or null.
deletedAtStringDeletion instant, as an RFC 3339 timestamp; null for live records.
descriptionStringFree-text description, or null.
endTimeStringExclusive ONE_SHOT end, as an RFC 3339 timestamp.
endedAtStringServer-recorded early end, as an RFC 3339 timestamp.
endedByStringSubject that ended the window, or null.
idID!Server-assigned numeric identifier.
kindAlarmSuppressionKind!Single interval or recurring weekly schedule.
metadataStringCaller-defined metadata as JSON, or null.
nameStringHuman-readable name, or null.
openings[AlarmSuppressionInterval!]!Upcoming openings, including the current opening; at most twenty.

Arguments:
limit: Int = 5 — Positive number of intervals to return, capped at twenty.
reasonString!Required explanation for holding pages.
slotsStringWeekly slots as a JSON array of day, start and durationMinutes.
startTimeStringInclusive ONE_SHOT start, as an RFC 3339 timestamp.
statusString!SCHEDULED, ACTIVE or ENDED, computed now. Clients must tolerate new values.
targets[AlarmSuppressionTarget!]!Whole target list; windows are visible only when every target is visible.
timezoneStringIANA time zone for RECURRING openings.
tokenString!Stable identifier within the tenant.
updatedAtStringLast write instant, as an RFC 3339 timestamp.
validFromStringOptional inclusive recurrence bound, as an RFC 3339 timestamp.
validUntilStringOptional exclusive recurrence bound, as an RFC 3339 timestamp.

AlarmSuppressionWindowSearchResults​

object

A page of visible suppression windows.

FieldTypeDescription
paginationSearchResultsPagination!Page bounds and total visible matching records. For scoped callers, totalRecords counts whole-window-visible matches among the first 10,000 storage-visible candidates; pages remain available beyond that count bound.
results[AlarmSuppressionWindow!]!Windows on this page.

Area​

object

An area: a place that devices can be located in, optionally bounded by a geofence.

Implements Model, TokenReference, NamedEntity, MetadataEntity, Entity

FieldTypeDescription
areaTypeAreaType!The area type this area is an instance of.
boundaryFenceGeoFenceThe geofence that bounds the area, or null when none does. Null for a caller limited to part of the tenant. Answers an error, not null, when the linked fence has been deleted.
createdAtStringWhen the area was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted areas are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address an area by its token instead where you can.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
tokenString!Identifier of the area, unique within the tenant. It cannot be changed after creation.
updatedAtStringWhen the area was last written, as an RFC 3339 timestamp.

AreaSearchResults​

object

One page of areas.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[Area!]!The areas on this page.

AreaType​

object

A type, or class, of areas: configuration shared by every area that references it.

Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity

FieldTypeDescription
backgroundColorStringBackground colour to display the area type with, up to 32 characters. Not validated. Null when none is set.
borderColorStringBorder colour to display the area type with, up to 32 characters. Not validated. Null when none is set.
createdAtStringWhen the area type was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted area types are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
foregroundColorStringForeground (text) colour to display the area type with, up to 32 characters. Not validated. Null when none is set.
iconStringName of an icon representing the area type, up to 128 characters. Not checked against any icon set. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address a area type by its token instead where you can.
imageUrlStringURL of an image representing the area type, up to 512 characters. Null when none is set.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
semanticTypes[SemanticTerm!]The classes this type is, as terms of the vocabularies the tenant has enabled; empty when it is bound to none. Each carries its expanded IRI and a display CURIE. Null only when the terms could not be rendered, with an error saying why.
tokenString!Identifier of the area type, unique within the tenant. It cannot be changed after creation.
updatedAtStringWhen the area type was last written, as an RFC 3339 timestamp.

AreaTypeSearchResults​

object

One page of area types.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[AreaType!]!The area types on this page.

Asset​

object

An asset: a physical or logical thing that devices can be assigned to, such as a pump, a vehicle or a building system, optionally carrying a property document validated against its type's published contract. Assets can be arranged in a hierarchy.

Implements Model, TokenReference, NamedEntity, MetadataEntity, Entity

FieldTypeDescription
assetTypeAssetType!The asset type this asset is an instance of.
createdAtStringWhen the asset was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted assets are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address an asset by its token instead where you can.
installedPositionInstalledPositionWhere the asset was installed. Needs location:installed:read (location:read includes it). Null for a caller without it, and null when no position was recorded.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
positionWithheldBoolean!Whether installedPosition is withheld from this caller; it concerns the installed position only. True for every asset a caller without location:installed:read (or location:read) reads, whether or not the asset has an installed position. It depends on the caller alone.
propertiesStringThe asset's property document: a JSON object whose keys are the properties its type's published contract declares. Null when the asset carries none.
tokenString!Identifier of the asset, unique within the tenant. It cannot be changed after creation.
updatedAtStringWhen the asset was last written, as an RFC 3339 timestamp.

AssetSearchResults​

object

One page of assets.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[Asset!]!The assets on this page.

AssetType​

object

A type, or class, of assets: configuration shared by every asset that references it. An asset type may declare a property contract: a typed schema its assets' property documents are validated against. The contract is drafted on the type and takes effect only when published as a version.

Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity

FieldTypeDescription
activeVersionIntThe published version that assets of this type are validated against. Null when the type has never been published, in which case an asset of the type may carry no properties at all.
backgroundColorStringBackground colour to display the asset type with, up to 32 characters. Not validated. Null when none is set.
borderColorStringBorder colour to display the asset type with, up to 32 characters. Not validated. Null when none is set.
createdAtStringWhen the asset type was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted asset types are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
foregroundColorStringForeground (text) colour to display the asset type with, up to 32 characters. Not validated. Null when none is set.
iconStringName of an icon representing the asset type, up to 128 characters. Not checked against any icon set. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address a asset type by its token instead where you can.
imageUrlStringURL of an image representing the asset type, up to 512 characters. Null when none is set.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
propertySchemaStringThe draft property contract for assets of this type: a JSON array of typed field descriptors in declaration order, in the same descriptor shape a command definition uses for its parameters. Null when the type declares none. Editing it changes nothing an asset is validated against until the type is published.
semanticTypes[SemanticTerm!]The classes this type's draft is, as terms of the vocabularies the tenant has enabled (a published version freezes its own copy); empty when it is bound to none. Each carries its expanded IRI and a display CURIE. Null only when the terms could not be rendered, with an error saying why.
tokenString!Identifier of the asset type, unique within the tenant. It cannot be changed after creation.
updatedAtStringWhen the asset type was last written, as an RFC 3339 timestamp.

AssetTypeSearchResults​

object

One page of asset types.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[AssetType!]!The asset types on this page.

AssetTypeVersion​

object

An immutable published snapshot of an asset type's property contract. Assets are validated against the type's active version, never its draft, so publishing is what makes a contract binding. History is append-only: a rollback re-points the active version and deletes nothing.

FieldTypeDescription
descriptionStringOptional description of what the version changes. Null when none was given.
labelStringOptional label given at publish. It may embed a semantic version string, which is not parsed.
propertySchemaString!The property contract this version froze, in the same JSON form as AssetType.propertySchema. Exposed so an author can see what a version froze before deciding to roll back to it.
publishedAtString!When the version was published, as an RFC 3339 timestamp.
publishedByStringThe identity that published the version. Null when not recorded.
semanticPackVersions[SemanticPackVersion!]The vocabulary versions the frozen classes were validated against; empty when none were bound. Null only when the stored record could not be read, with an error saying why.
semanticTypes[SemanticTerm!]The classes the type was bound to when this version was published; empty when it was bound to none, and for every version published before the semantic layer existed. Rolling back to this version restores them onto the type. Null only when the terms could not be rendered, with an error saying why.
versionInt!Version number, increasing per type.

AuditEvent​

object

A row of the audit journal. It is captured on every entity mutation in this service and is never changed through the API. The one other thing that writes it is deleting a tenant, which empties the fields that name a person and keeps the row as evidence of the deletion. Requires audit:read.

FieldTypeDescription
actorString!The authenticated subject that performed it, system for a system-context operation, or an empty string when neither is present.
categoryString!mutation for an entity create, update or delete, or auth for a login or token refresh.
entityLabelStringA human-facing label of the affected row, such as its token, captured when the model provides one; null otherwise. Emptied for a tenant that has been deleted, because the journal is kept as evidence of the deletion without the identifiers it concerned.
entityPkStringPrimary key of the affected row when the statement targets a single row; empty for a bulk or conditional mutation, whose scope rowsAffected conveys.
idID!Server-assigned numeric identifier, as a string.
occurredTimeString!When the audited statement committed, as an RFC 3339 timestamp.
operationString!create, update or delete for a mutation.
rowsAffectedInt!Number of rows the audited statement affected.
tableNameStringThe schema-qualified table that was mutated. Empty for an auth event.

AuditEventSearchResults​

object

One page of audit journal rows, newest first.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[AuditEvent!]!The entries on this page.

AutomationReview​

object

(Preview: may change in a minor release.) Frozen evidence and approval history for a profile draft.

FieldTypeDescription
approvals[AutomationReviewApproval!](Preview: may change in a minor release.) Approvals. Parsed from stored JSON; parse failures return null and an error.
approvedAtString(Preview: may change in a minor release.) When the approval threshold was reached, in RFC3339 format.
baselineDigestString!(Preview: may change in a minor release.) The digest of the published baseline snapshot.
baselineVersionInt!(Preview: may change in a minor release.) The published baseline version.
consumedVersionInt(Preview: may change in a minor release.) The version this review was consumed by, or null while it has not been.
createdAtString!(Preview: may change in a minor release.) When the review was created, in RFC3339 format.
createdByString!(Preview: may change in a minor release.) The person who ran the review.
decidedAtString(Preview: may change in a minor release.) When the review was rejected, in RFC3339 format.
decidedByString(Preview: may change in a minor release.) The person who rejected the review.
deviceTokens[String!](Preview: may change in a minor release.) The device tokens selected for replay. Parsed from stored JSON; parse failures return null and an error.
draftAuthors[String!](Preview: may change in a minor release.) People whose edits contributed after the baseline publication. Parsed from stored JSON; parse failures return null and an error.
draftDigestString!(Preview: may change in a minor release.) The digest of the reviewed draft snapshot.
engineBuildString(Preview: may change in a minor release.) The comparison engine build identifier.
expectationInputs[AutomationReviewExpectationInput!](Preview: may change in a minor release.) The expectations supplied when the review ran. Parsed from stored JSON; parse failures return null and an error.
expectations[AutomationReviewExpectationResult!](Preview: may change in a minor release.) The verdicts for the supplied expectations. Parsed from stored JSON; parse failures return null and an error.
expiresAtString(Preview: may change in a minor release.) When approval expires, in RFC3339 format.
fidelityAutomationReviewFidelity(Preview: may change in a minor release.) The recorded-input fidelity assessment. Parsed from stored JSON; parse failures return null and an error.
inputDigestString(Preview: may change in a minor release.) The digest of the recorded comparison inputs.
kindAutomationReviewKind!(Preview: may change in a minor release.) How the draft changes automation.
matchesCurrentDraftBoolean(Preview: may change in a minor release.) Whether the current draft digest matches this review; computation failures return null and an error.
noteString(Preview: may change in a minor release.) The optional rejection note.
outcomeAutomationReviewOutcome!(Preview: may change in a minor release.) The frozen comparison outcome.
profileChanges[AutomationReviewProfileChange!](Preview: may change in a minor release.) The differences between the baseline and reviewed draft. Parsed from stored JSON; parse failures return null and an error.
profileTokenString(Preview: may change in a minor release.) The profile token, resolved from its stored id; lookup failures return null and an error.
reasons[String!](Preview: may change in a minor release.) Stored UNREVIEWABLE reasons; an empty list otherwise. Invalid stored JSON returns null and an error.
requiredApprovalsInt!(Preview: may change in a minor release.) The number of independent approvals required.
resultString(Preview: may change in a minor release.) The stored canonical comparison JSON, preserved byte for byte.
resultDigestString(Preview: may change in a minor release.) The digest of the stored result bytes.
reviewDigestString!(Preview: may change in a minor release.) The frozen evidence digest the approver must be shown.
ruleTokenString(Preview: may change in a minor release.) The changed rule token, when one rule is compared.
shiftWindowSecondsInt(Preview: may change in a minor release.) The maximum pairing shift, in seconds; null uses the engine default. Parsed from stored JSON; parse failures return null and an error.
stateAutomationReviewState!(Preview: may change in a minor release.) The current review lifecycle state.
tokenString!(Preview: may change in a minor release.) The stable token identifying this review.
windowResults[AutomationReviewWindowResult!](Preview: may change in a minor release.) The recorded comparison evidence for each window. Parsed from stored JSON; parse failures return null and an error.
windows[AutomationReviewWindowSpec!](Preview: may change in a minor release.) The incident and normal replay windows. Parsed from stored JSON; parse failures return null and an error.

AutomationReviewApproval​

object

(Preview: may change in a minor release.) AutomationReviewApproval evidence.

FieldTypeDescription
approvedAtString!(Preview: may change in a minor release.) When this approval was recorded, in RFC3339 format.
policyRevisionInt!(Preview: may change in a minor release.) The policy revision recorded with this approval.
principalString!(Preview: may change in a minor release.) The approving person.

AutomationReviewBreakGlass​

object

(Preview: may change in a minor release.) The recorded reason and person for a protected activation change.

FieldTypeDescription
actionAutomationReviewBreakGlassAction!(Preview: may change in a minor release.) The activation change action.
actorString!(Preview: may change in a minor release.) The person making the change.
atString!(Preview: may change in a minor release.) When recorded, as an RFC 3339 timestamp.
reasonString!(Preview: may change in a minor release.) Why the change was necessary.
targetString!(Preview: may change in a minor release.) The affected target token.

AutomationReviewChange​

object

(Preview: may change in a minor release.) AutomationReviewChange evidence.

FieldTypeDescription
afterDivergenceBoolean!(Preview: may change in a minor release.) Whether this difference follows the first state divergence.
baseAtString(Preview: may change in a minor release.) The baseline intent time, in RFC3339 format, if present.
baseContentAutomationReviewIntentContent(Preview: may change in a minor release.) The baseline intent content, if present.
contentChangedBoolean!(Preview: may change in a minor release.) Whether paired intent content changed.
deviceString!(Preview: may change in a minor release.) The device token.
discriminatorString!(Preview: may change in a minor release.) The intent discriminator used for pairing.
draftAtString(Preview: may change in a minor release.) The draft intent time, in RFC3339 format, if present.
draftContentAutomationReviewIntentContent(Preview: may change in a minor release.) The draft intent content, if present.
kindAutomationReviewChangeKind!(Preview: may change in a minor release.) How the draft changes automation.
readingAutomationReviewReading!(Preview: may change in a minor release.) The reading that caused this intent difference.
shiftSecondsFloat!(Preview: may change in a minor release.) The signed paired-intent shift converted from nanoseconds to seconds.
subjectString!(Preview: may change in a minor release.) The automation intent subject.

AutomationReviewChangeCounts​

object

(Preview: may change in a minor release.) Total intent change counts for one window.

FieldTypeDescription
addedInt!(Preview: may change in a minor release.) The number of added intents.
contentChangedInt!(Preview: may change in a minor release.) The number of paired intents whose content changed.
removedInt!(Preview: may change in a minor release.) The number of removed intents.
shiftedInt!(Preview: may change in a minor release.) The number of shifted paired intents.
unchangedInt!(Preview: may change in a minor release.) The number of unchanged paired intents.

AutomationReviewDeviceCoverage​

object

(Preview: may change in a minor release.) AutomationReviewDeviceCoverage evidence.

FieldTypeDescription
deviceString!(Preview: may change in a minor release.) The device token.
divergenceString(Preview: may change in a minor release.) When replay first diverged, in RFC3339 format, if it diverged.
firstString(Preview: may change in a minor release.) The first covered reading time, or null if none.
lastString(Preview: may change in a minor release.) The last covered reading time, or null if none.
lateBaseInt!(Preview: may change in a minor release.) The number of late baseline readings.
lateDraftInt!(Preview: may change in a minor release.) The number of late draft readings.
readings[AutomationReviewMetricCount!]!(Preview: may change in a minor release.) Reading counts by metric key, sorted by key.
stateBaseAutomationReviewStartState!(Preview: may change in a minor release.) The baseline starting state.
stateDraftAutomationReviewStartState!(Preview: may change in a minor release.) The draft starting state.
versions[AutomationReviewMetricCount!]!(Preview: may change in a minor release.) Reading counts by profile version token, sorted by key.

AutomationReviewExpectationInput​

object

(Preview: may change in a minor release.) AutomationReviewExpectationInput evidence.

FieldTypeDescription
expectString!(Preview: may change in a minor release.) The stored rule-test expectation as JSON.
nameString(Preview: may change in a minor release.) The expectation name.
windowAutomationReviewWindowRole!(Preview: may change in a minor release.) The window to which this expectation applies.

AutomationReviewExpectationResult​

object

(Preview: may change in a minor release.) AutomationReviewExpectationResult evidence.

FieldTypeDescription
baselineAutomationReviewVerdict!(Preview: may change in a minor release.) The baseline verdict for this expectation.
baselineReasonString!(Preview: may change in a minor release.) The reason for the baseline verdict.
evidence[AutomationReviewReading!]!(Preview: may change in a minor release.) The readings supporting this verdict.
indexInt!(Preview: may change in a minor release.) The zero-based expectation index.
nameString!(Preview: may change in a minor release.) The expectation name.
reasonString!(Preview: may change in a minor release.) The reason for the draft verdict.
verdictAutomationReviewVerdict!(Preview: may change in a minor release.) The draft verdict for this expectation.
windowAutomationReviewWindowRole!(Preview: may change in a minor release.) The window to which this expectation applies.

AutomationReviewFidelity​

object

(Preview: may change in a minor release.) AutomationReviewFidelity evidence.

FieldTypeDescription
labelString!(Preview: may change in a minor release.) The human-readable fidelity label.
reasons[String!]!(Preview: may change in a minor release.) The reasons supporting the fidelity assessment.
statusString!(Preview: may change in a minor release.) The engine fidelity status.

AutomationReviewIntentContent​

object

(Preview: may change in a minor release.) AutomationReviewIntentContent evidence.

FieldTypeDescription
bodyDigestString(Preview: may change in a minor release.) The request body digest, when applicable.
configDigestString(Preview: may change in a minor release.) The configuration digest, when applicable.
expiryLabelString(Preview: may change in a minor release.) The expiry label, when applicable.
methodString(Preview: may change in a minor release.) The request method, when applicable.
payloadString(Preview: may change in a minor release.) The command payload, when applicable.
relativeExpirySecondsFloat(Preview: may change in a minor release.) The relative expiry converted from nanoseconds to seconds, if present.
severityString(Preview: may change in a minor release.) The alarm severity, when applicable.

AutomationReviewMetricCount​

object

(Preview: may change in a minor release.) AutomationReviewMetricCount evidence.

FieldTypeDescription
countInt!(Preview: may change in a minor release.) The number of recorded occurrences.
keyString!(Preview: may change in a minor release.) The metric key, or profile version token for version counts. Entries are sorted by key.

AutomationReviewPolicy​

object

(Preview: may change in a minor release.) Automation publish protection for a profile.

FieldTypeDescription
effectiveAutomationReviewPolicySettings!(Preview: may change in a minor release.) The settings currently enforced; defaults apply when no policy is stored.
pendingChangeAutomationReviewPolicyChange(Preview: may change in a minor release.) The pending loosening proposal, if any.
profileTokenString!(Preview: may change in a minor release.) The protected profile token.
revisionInt!(Preview: may change in a minor release.) The stored revision, or zero when no policy is stored.
updatedAtString(Preview: may change in a minor release.) When the stored policy was updated, as an RFC 3339 timestamp, or null when none is stored.
updatedByString(Preview: may change in a minor release.) Who last updated the stored policy, or null when none is stored.

AutomationReviewPolicyChange​

object

(Preview: may change in a minor release.) A proposed loosening of automation protection.

FieldTypeDescription
decidedAtString(Preview: may change in a minor release.) When decided, as an RFC 3339 timestamp.
decidedByString(Preview: may change in a minor release.) Who decided the proposal, when decided.
effectiveAtString(Preview: may change in a minor release.) When the change may take effect without a second person, as an RFC 3339 timestamp.
proposedAutomationReviewPolicySettings(Preview: may change in a minor release.) The proposed settings; unreadable stored JSON returns null and an error.
proposedAtString!(Preview: may change in a minor release.) When proposed, as an RFC 3339 timestamp.
proposedByString!(Preview: may change in a minor release.) The person proposing the change.
stateAutomationReviewPolicyChangeState!(Preview: may change in a minor release.) The proposal lifecycle state.
tokenString!(Preview: may change in a minor release.) The policy change token.

AutomationReviewPolicySettings​

object

(Preview: may change in a minor release.) Effective automation publish protection settings.

FieldTypeDescription
allowSelfApprovalBoolean!(Preview: may change in a minor release.) Whether review creators and draft authors may approve.
approvalTtlSecondsInt!(Preview: may change in a minor release.) Approval lifetime in seconds.
requiredBoolean!(Preview: may change in a minor release.) Whether publishing requires an approved review.
requiredApprovalsInt!(Preview: may change in a minor release.) Number of distinct approvals required.
stepUpMaxAgeSecondsInt!(Preview: may change in a minor release.) Maximum age of the second factor in seconds.

AutomationReviewProfileChange​

object

(Preview: may change in a minor release.) AutomationReviewProfileChange evidence.

FieldTypeDescription
areaAutomationReviewProfileChangeArea!(Preview: may change in a minor release.) The part of the profile that changed.
automationBoolean!(Preview: may change in a minor release.) Whether this change affects automation behavior.
changeAutomationReviewProfileChangeType!(Preview: may change in a minor release.) Whether the profile element was added, removed or modified.
keyString!(Preview: may change in a minor release.) The stable key of the changed profile element.

AutomationReviewReading​

object

(Preview: may change in a minor release.) AutomationReviewReading evidence.

FieldTypeDescription
atString!(Preview: may change in a minor release.) The reading time, in RFC3339 format.
deviceString!(Preview: may change in a minor release.) The device token.
spanSecondsFloat!(Preview: may change in a minor release.) The reading span converted from nanoseconds to seconds.
valueFloat(Preview: may change in a minor release.) The recorded value, or null when the reading has no value.

AutomationReviewSearchResults​

object

(Preview: may change in a minor release.) One page of automation reviews.

FieldTypeDescription
paginationSearchResultsPagination!(Preview: may change in a minor release.) Where this page sits in the full result set.
results[AutomationReview!]!(Preview: may change in a minor release.) The reviews on this page, newest first.

AutomationReviewWindowResult​

object

(Preview: may change in a minor release.) AutomationReviewWindowResult evidence.

FieldTypeDescription
changes[AutomationReviewChange!]!(Preview: may change in a minor release.) The listed automation intent differences.
changesTruncatedBoolean!(Preview: may change in a minor release.) Whether the engine limited the listed changes.
countsAutomationReviewChangeCounts!(Preview: may change in a minor release.) The total change counts before truncation.
degraded[String!]!(Preview: may change in a minor release.) The window degradation reasons.
devices[AutomationReviewDeviceCoverage!]!(Preview: may change in a minor release.) The replay coverage for each selected device.
endString!(Preview: may change in a minor release.) The end of the window, in RFC3339 format.
firstSeqString!(Preview: may change in a minor release.) The first stream sequence as a decimal string, without numeric narrowing.
inputDigestString!(Preview: may change in a minor release.) The digest of the recorded comparison inputs.
lastSeqString!(Preview: may change in a minor release.) The last stream sequence as a decimal string, without numeric narrowing.
leadInStartString!(Preview: may change in a minor release.) The replay lead-in start, in RFC3339 format.
roleAutomationReviewWindowRole!(Preview: may change in a minor release.) Whether this is the incident or normal window.
startString!(Preview: may change in a minor release.) The start of the window, in RFC3339 format.
streamString!(Preview: may change in a minor release.) The recorded input stream.

AutomationReviewWindowSpec​

object

(Preview: may change in a minor release.) AutomationReviewWindowSpec evidence.

FieldTypeDescription
endString!(Preview: may change in a minor release.) The end of the window, in RFC3339 format.
roleAutomationReviewWindowRole!(Preview: may change in a minor release.) Whether this is the incident or normal window.
startString!(Preview: may change in a minor release.) The start of the window, in RFC3339 format.

BatchEnqueueRefusal​

object

One device a batch command check refused, and why.

FieldTypeDescription
codeString!Why the command was refused, as a stable code: DEVICE_NOT_FOUND, DEVICE_DISABLED, COMMAND_NOT_IN_VOCABULARY, PAYLOAD_SCHEMA_VIOLATION or COMMAND_DESTRUCTIVE_REFUSED, with the same meanings as in validateCommandEnqueue; commandDispatchSchedule adds WINDOW_AFTER_EXPIRY (the device type's maintenance window next opens after the command expires). Branch on this, not on reason.
deviceTokenString!The refused device's token, exactly as it appeared in the request.
reasonString!Why the command was refused, in words a person can act on. The wording may change.

BulkAcknowledgeAlarmsResult​

object

What one bulk acknowledge did. Every distinct token the caller supplied appears in exactly one of the two lists, so a selection can be reconciled completely rather than inferred from a count.

FieldTypeDescription
acknowledged[Alarm!]!The alarms that are now acknowledged, including any that already were: a repeat acknowledgement is not a failure, matching acknowledgeAlarm. In the order each token was first named.
refusals[AlarmAckRefusal!]!The tokens that named no alarm, each with its code and reason. Empty for a clean request. In the order each token was first named.

BulkChange​

object

Preview. One change applied to many devices, as one reviewed decision.

Implements Model, TokenReference

FieldTypeDescription
closedAtStringPreview. When the last verdict arrived.
contractString!Preview. The contract in force, as canonical JSON.
contractDigestString!Preview. Digest of the contract a person approves by presenting it at start.
contractVersionInt!Preview. Version of the contract in force.
createdAtStringPreview. When the operation was created.
deletedAtStringPreview. Always null: operations are not soft-deleted.
dispatchBulkChangeDispatch!Preview. Where the operation is in dispatching its lines.
dispatchedAtStringPreview. When its last line was applied.
evidenceBulkChangeEvidence!Preview. Whether the devices have answered for every applied line.
evidenceCapabilityBulkChangeEvidenceCapability!Preview. What its verdicts can and cannot prove.
executionEpochInt!Preview. Counts every pause, resume and handover; a pause is final for lines applied before it.
executorBulkChangeExecutorState!Preview. Whether the engine applying the operation is making progress.
expiresAtStringPreview. When a READY operation that is never started is aborted.
granteeStringPreview. Sign-in name of the person the operation currently runs on behalf of. Null until it is started.
holdCodeStringPreview. Why a running operation is waiting. Null when it is not.
holdSinceStringPreview. Since when it has been waiting.
idID!Preview. Server-assigned numeric identifier, as a string.
initiatorString!Preview. Sign-in name of the person who created the operation.
intentString!Preview. What the operation does, as canonical JSON.
kindString!Preview. What the operation does, for example config.set.
lastErrorCodeStringPreview. The code of the last error the engine met.
lastProgressAtStringPreview. When a line was last applied.
nameString!Preview. Name shown to people.
pauseReasonStringPreview. Why a paused operation is paused. Null when it is not.
planDigestString!Preview. Digest of the plan: the ordered targets and what was admitted or refused.
progressBulkChangeProgress!Preview. Line counts by state, as of this read.
requestDigestString!Preview. Digest of the request that created the operation.
reversalOfBulkChangePreview. The bulk change this one reverses. Null when it is not a reversal.
reversals[BulkChange!]!Preview. The reversals created for this bulk change, oldest first.
safetyBulkChangeSafety!Preview. The limits it was approved to run under.
startedAtStringPreview. When the operation was started.
targetCountInt!Preview. Number of lines, refused ones included.
targetKindString!Preview. How the targets were named, for example DEVICE_LIST.
tokenString!Preview. Identifier chosen by the creator, unique within the tenant. Creating again with the same token and the same request returns the original.
updatedAtStringPreview. When the operation was last written.

BulkChangeEvidenceCapability​

object

Preview. What the operation can and cannot claim about the devices' answers.

FieldTypeDescription
brokerFailClosedBoolean!Preview. Whether the broker was configured to refuse rather than drop when the operation started.
noteString!Preview. In words, what a verdict does and does not prove.
reportLogBoolean!Preview. Whether the history of accepted reports is kept.

BulkChangeLine​

object

Preview. One device and one change within an operation.

FieldTypeDescription
attemptsInt!Preview. How many times applying the line was tried.
codeStringPreview. Why the line was refused or skipped.
detailStringPreview. Detail for the code.
evidenceBasisBulkChangeEvidenceBasisPreview. What decided the settlement.
evidenceFlagStringPreview. Set when a later report contradicts a person's verdict.
evidenceRevisionIntPreview. The revision of the report that decided it.
lastErrorCodeStringPreview. The code of the last retryable error.
ordinalInt!Preview. Position in the creator's own input, starting at 1.
overrideChangedBoolean!Preview. Whether the line was applied over a change made since the original.
postedAtStringPreview. When the line was applied.
postedRevisionIntPreview. The configuration revision the application produced.
postedValueStringPreview. The value that was applied, as JSON.
postingBulkChangeLinePosting!Preview. What happened when the line was applied.
priorStringPreview. The value the device held before, as JSON. Null until the line is applied.
redactedBoolean!Preview. Whether the line's identifiers were erased.
resolutionNoteStringPreview. The resolution's shared note. Null once redacted.
resolvedAtStringPreview. When it was resolved.
resolvedByStringPreview. Sign-in name of the person who resolved the line.
reversedByBulkChangeLinePreview. The applied line of a reversal that restored this line's earlier value. Null while nothing has.
settleByStringPreview. When the device must have answered.
settledAtStringPreview. When the line was settled.
settlementBulkChangeLineSettlementPreview. The device's answer, once there is one.
targetTokenStringPreview. Token of the target device. Null for an input that named no device and once the device has been deleted.

BulkChangeLineSearchResults​

object

Preview. One page of an operation's lines.

FieldTypeDescription
paginationSearchResultsPagination!Preview. Where this page sits in the full result.
results[BulkChangeLine!]!Preview. The lines on this page, in ordinal order.

BulkChangePlan​

object

Preview. What an operation would do, computed without writing anything.

FieldTypeDescription
admittedCountInt!Preview. Lines that would be applied.
contractDigestString!Preview. Digest to present to start the operation.
planDigestString!Preview. Digest of the plan.
refusalCounts[BulkChangePlanRefusalCount!]!Preview. Refusals by code, counted in full.
refusals[BulkChangePlanRefusal!]!Preview. The first 100 refusals of each code, each with the token supplied.
refusedCountInt!Preview. Lines that were refused at plan time.
requestDigestString!Preview. Digest of the request.

BulkChangePlanRefusal​

object

Preview. An input a plan refused.

FieldTypeDescription
codeString!Preview. Why: TARGET_NOT_FOUND or DUPLICATE_TARGET.
ordinalInt!Preview. Position in the creator's input.
tokenString!Preview. The token as supplied.

BulkChangePlanRefusalCount​

object

Preview. How many inputs a plan refused for one code.

FieldTypeDescription
codeString!Preview. The refusal code.
countInt!Preview. How many inputs were refused for it, in full.

BulkChangeProgress​

object

Preview. Line counts of one operation, grouped by state, as of this read.

FieldTypeDescription
ambiguousInt!Preview. Applied lines with no answer in time.
awaitingEvidenceInt!Preview. Applied lines still waiting for the device's answer.
cancelledInt!Preview. Lines cancelled by an abort.
confirmedInt!Preview. Applied lines the device confirmed.
failedInt!Preview. Applied lines the device rejected.
plannedInt!Preview. Lines not applied yet.
postedInt!Preview. Lines applied.
refusedInt!Preview. Lines refused.
resolvedInt!Preview. Ambiguous lines a person has resolved.
skippedInt!Preview. Lines skipped.
supersededInt!Preview. Applied lines overtaken by a newer configuration.

BulkChangeReadiness​

object

Preview. Whether this instance can run bulk changes. May change in a minor release while in preview.

FieldTypeDescription
enforcementBulkChangeEnforcement!Preview. Whether the database enforces the device attribute writer protocol.
executableKinds[String!]!Preview. Operation kinds the caller can run now: the kinds the answering service build executes, while enforcement is ENFORCED and orphanedAttributeRows is 0. Empty otherwise.
orphanedAttributeRowsIntPreview. Device attribute and generation rows in the caller's tenant whose device no longer exists, counted fresh for this request, including soft-deleted attributes. Bulk changes are not activated while this is above zero. Null when the count could not be read; the error names why, and the other facts are still answered.
protocolVersionInt!Preview. Highest bulk-change protocol version the answering service build follows.

BulkChangeResumePreview​

object

Preview. What resuming an operation with a given change would do, computed without writing anything.

FieldTypeDescription
contractString!Preview. The contract in force, as canonical JSON.
contractDigestString!Preview. Digest to present to resume.
contractVersionInt!Preview. Version of the contract in force.
stepUpRequiredBoolean!Preview. Whether the change needs a fresh second factor. Always false in this release.
thresholdStillExceededBoolean!Preview. Whether the failure or ambiguity limit is still reached, which refuses a resume.
withinContractBoolean!Preview. Whether the change stays within what was approved.

BulkChangeReversalPreview​

object

Preview. What a reversal would do, computed without writing anything.

FieldTypeDescription
alreadyReversedCountInt!Preview. Lines another reversal already restored.
changedSinceCountInt!Preview. Of those, lines whose value changed after the original was applied, as of this read. Each is refused with CHANGED_SINCE unless overridden.
contractDigestString!Preview. Digest to present to start the reversal.
notPostedCountInt!Preview. Selected lines that were never applied.
planDigestString!Preview. Digest of the plan.
redactedCountInt!Preview. Lines whose earlier value was erased with their device.
requestDigestString!Preview. Digest of the request.
reversibleCountInt!Preview. Lines that would be applied.

BulkChangeSafety​

object

Preview. The limits an operation was approved to run under, and the values currently in force.

FieldTypeDescription
ambiguityThresholdIntPreview. Ambiguous lines that pause the operation. Null for no limit.
effectiveAmbiguityThresholdIntPreview. The ambiguity limit currently in force.
effectiveFailureThresholdIntPreview. The failure limit currently in force.
effectivePostsPerSecondInt!Preview. The rate currently in force, never above the approved one.
failureThresholdIntPreview. Failed lines that pause the operation. Null for no limit.
maxPostsPerSecondInt!Preview. The most lines applied per second that was approved.
settleDeadlineSecondsInt!Preview. Seconds a device has to answer before its line becomes ambiguous.

BulkChangeSearchResults​

object

Preview. One page of operations.

FieldTypeDescription
paginationSearchResultsPagination!Preview. Where this page sits in the full result.
results[BulkChange!]!Preview. The operations on this page, newest first.

CalculatedBackfillRosterEntry​

object

One device of the profile a backfill walks.

FieldTypeDescription
constants[DeviceConstant!]!The requested constant names the device's metadata holds; empty when it holds none.
createdAtString!When the device was created, RFC 3339 in UTC.
deviceIdString!The device's id, the cursor's unit.
deviceTokenString!The device's token.

CalculatedBackfillRosterPage​

object

One page of the devices a calculated-metric backfill walks.

FieldTypeDescription
entries[CalculatedBackfillRosterEntry!]!The devices on this page, in device order.
nextCursorStringThe cursor to pass as afterId for the next page; null when the walk is complete.
totalFloatHow many devices the whole walk covers; set on the first page only, null after.

CalculatedMetricPlan​

object

The calculated metrics of one published profile version, as the live resolver runs them.

FieldTypeDescription
activeSinceStringWhen the version became active; null unless it is the profile's active version.
calculated[CalculatedMetricPlanMetric!]!The calculated metrics in the order the resolver evaluates them: a formula follows the ones it reads, and by key otherwise. A metric whose data type no formula can produce comes last, by key.
constantKeys[String!]!The device constants the formulas read together, sorted and distinct.
measured[CalculatedMetricPlanInput!]!The measured metrics the formulas may read, in declaration order.
versionInt!The version number.
versionTokenString!The version's token, profileToken@version.

CalculatedMetricPlanInput​

object

One measured metric a calculated metric's formula may read.

FieldTypeDescription
dataTypeString!The metric's data type: DOUBLE, INT, BOOLEAN or STRING.
keyString!The metric's key.

CalculatedMetricPlanMetric​

object

One calculated metric of a published profile version.

FieldTypeDescription
changedSinceEarlierBoolean!True when an earlier published version calculated this key under a different expression, data type or bounds, so values computed then differ from what this version's formula gives.
classifierFloat!The metric definition's id, stamped on every value of it as its classifier.
constants[String!]The device constants the formula reads, including through the calculated metrics it reads, sorted and distinct. Null exactly when inputs is.
dataTypeString!The declared result type: DOUBLE, INT or BOOLEAN.
expressionString!The formula source, a CEL expression over the version's other metrics.
inputs[String!]The metric keys the formula reads directly, measured or calculated, as this version compiles it. Null when the metric cannot run in this version (its formula does not compile here, or no formula can produce its data type), so it computes from nothing.
keyString!The metric's key.
maxValueFloatThe inclusive upper bound a computed value must meet, if the definition has one.
measuredInputs[String!]The measured metrics the formula's value is computed from, including those read through the calculated metrics it reads, in the order of measured. Null exactly when inputs is.
minValueFloatThe inclusive lower bound a computed value must meet, if the definition has one.
nameSharedWithOtherProfilesBoolean!True when another device profile of the tenant declares a metric (measured or calculated) with this key in its active version. Tenant-wide readings counted by metric name then include that profile's readings, so a count under this name cannot show this formula is working. Also true when the check could not be completed: more candidate versions than its bound, or another profile's version that could not be read.
newInVersionBoolean!True when the previous published version did not calculate this key (a first calculation, or one reinstated after a version without it).
unitStringThe unit stamped on computed values, if the definition has one.

CommandChannelAccess​

object

What the HTTP command endpoints learn about a device that proved its access token.

FieldTypeDescription
commandChannelStringThe type's command channel: PUBLISH, HTTP_PULL, or null for the default (PUBLISH).
deviceTokenString!Token of the device the access token belongs to.
deviceTypeTokenString!Token of the device's type.

CommandDefinition​

object

A command the devices of a profile accept, with the parameters its payload must satisfy. Once the profile is published, a command sent to such a device must use one of the published keys, and its payload is checked against the parameters.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
commandKeyString!The key used to send this command, unique within the profile. Letters, digits, hyphens and underscores, starting with a letter or digit; at most 128 characters. Dots may separate namespaced segments (for example sparkplug.write): each segment follows the same rule, and a leading, trailing or doubled dot is refused.
createdAtStringWhen the command definition was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted command definitions are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
deviceProfileDeviceProfile!The profile this command is declared on.
encoderStringOptional declarative LoRaWAN payload encoder JSON. Null keeps the raw payload contract.
idID!Server-assigned numeric identifier, as a string. Address a command definition by its token instead where you can.
impactString!How disruptive the command is to the device's work: NORMAL (a read or a benign write), DISRUPTIVE (interrupts it, such as a reboot) or DESTRUCTIVE (erases state, such as a wipe). DISRUPTIVE and DESTRUCTIVE commands wait for the device type's maintenance window when it has one; NORMAL commands never do.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
parameterSchemaStringThe command's parameters as a JSON array of parameter descriptors, or null when the command takes no structured arguments, in which case payloads are not checked.
tokenString!Identifier of the command definition, unique within the tenant.
updatedAtStringWhen the command definition was last written, as an RFC 3339 timestamp.

CommandDefinitionSearchResults​

object

One page of command definitions matching a search.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[CommandDefinition!]!The command definitions on this page.

CommandDispatchHold​

object

A command bound to one opening of its device type's maintenance window: it may be sent only between dispatchAfter and dispatchUntil. When the window is open now, dispatchAfter is already past and the command may be sent at once, but only until the window closes.

FieldTypeDescription
deviceTokenString!Token of the device the command is for.
dispatchAfterString!The earliest instant the command may be sent, as an RFC 3339 timestamp.
dispatchUntilString!When the opening closes, as an RFC 3339 timestamp. The command may not be sent at or after it.
windowTokenString!Token of the maintenance window that gates the command.

CommandDispatchImpact​

object

One device's command impact, decided together with its dispatch schedule.

FieldTypeDescription
deviceTokenString!Token of the device.
impactString!NORMAL, DISRUPTIVE or DESTRUCTIVE.

CommandDispatchSchedule​

object

The maintenance-window part of an enqueue decision for one or many devices: which commands must wait, and which are refused because the window opens only after they expire.

FieldTypeDescription
holds[CommandDispatchHold!]!Commands gated by a window, whether it is open now or not. A device not listed here and not refused may be sent to at any time.
impacts[CommandDispatchImpact!]!For every device that exists, is enabled and whose device type's current profile version defines the command, the impact (NORMAL, DISRUPTIVE or DESTRUCTIVE) it carries. It is the classification the maintenance-window gate decided on, so a transport that gates on impact reads the same answer. A device that does not exist, is disabled, or whose type does not define the command has no entry.
refusals[BatchEnqueueRefusal!]!Devices refused with the stable code WINDOW_AFTER_EXPIRY: the window next opens after the command expires, so it could only lapse unsent. Branch on code, not reason.
undefined[String!]!Devices that exist and are enabled, but whose device type's current profile version does not define this command at all.
ungated[String!]!Devices that exist, are enabled, and whose device type does not gate this command: no maintenance window, or a command that is not DISRUPTIVE or DESTRUCTIVE. Asked with alreadyHeld, only a device type with no maintenance window makes a device ungated. A device in none of the four lists does not exist or is disabled, and nothing is decided about it.

CommandEnqueueVerdict​

object

Whether a command may be sent to a device. A refusal is reported here rather than as a GraphQL error; an error means the check itself could not be made.

FieldTypeDescription
allowedBoolean!True when the command may be sent.
codeStringWhy the command was refused, as a stable code; null when allowed. One of DEVICE_NOT_FOUND (no device has the token), DEVICE_DISABLED (the device is disabled and accepts no commands), COMMAND_NOT_IN_VOCABULARY (the device's published profile declares commands and this key is not one of them) PAYLOAD_SCHEMA_VIOLATION (the payload does not satisfy the command's parameters) or COMMAND_DESTRUCTIVE_REFUSED (a raw execute of an operation that wipes the device, such as LwM2M Factory Reset). Branch on this, not on reason.
reasonStringWhy the command was refused, in words a person can act on; null when allowed. The wording may change; use code to decide what to do.

ConfigurationKey​

object

One shared attribute key declared as device-visible configuration on a device profile.

FieldTypeDescription
descriptionStringAn optional human-readable note.
keyString!The shared attribute key.
valueTypeString!How the key's value is typed: STRING, LONG, DOUBLE, BOOLEAN or JSON.

CustomPrefix​

object

A custom prefix and the namespace it stands for.

FieldTypeDescription
namespaceString!The namespace IRI the prefix expands to.
prefixString!The prefix, as written before the colon in a CURIE (city in city:SmartBin).

Customer​

object

A customer: an organisation or person that devices are assigned to. A member's access can be limited to the devices of particular customers.

Implements Model, TokenReference, NamedEntity, MetadataEntity, Entity

FieldTypeDescription
createdAtStringWhen the customer was created, as an RFC 3339 timestamp.
customerTypeCustomerType!The customer type this customer is an instance of.
deletedAtStringAlways null: deleted customers are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address a customer by its token instead where you can.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
tokenString!Identifier of the customer, unique within the tenant. It cannot be changed after creation.
updatedAtStringWhen the customer was last written, as an RFC 3339 timestamp.

CustomerSearchResults​

object

One page of customers.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[Customer!]!The customers on this page.

CustomerType​

object

A type, or class, of customers: configuration shared by every customer that references it.

Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity

FieldTypeDescription
backgroundColorStringBackground colour to display the customer type with, up to 32 characters. Not validated. Null when none is set.
borderColorStringBorder colour to display the customer type with, up to 32 characters. Not validated. Null when none is set.
createdAtStringWhen the customer type was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted customer types are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
foregroundColorStringForeground (text) colour to display the customer type with, up to 32 characters. Not validated. Null when none is set.
iconStringName of an icon representing the customer type, up to 128 characters. Not checked against any icon set. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address a customer type by its token instead where you can.
imageUrlStringURL of an image representing the customer type, up to 512 characters. Null when none is set.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
semanticTypes[SemanticTerm!]The classes this type is, as terms of the vocabularies the tenant has enabled; empty when it is bound to none. Each carries its expanded IRI and a display CURIE. Null only when the terms could not be rendered, with an error saying why.
tokenString!Identifier of the customer type, unique within the tenant. It cannot be changed after creation.
updatedAtStringWhen the customer type was last written, as an RFC 3339 timestamp.

CustomerTypeSearchResults​

object

One page of customer types.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[CustomerType!]!The customer types on this page.

DetectionRule​

object

A detection rule declared on a device profile. The rule body, definition, is an opaque JSON document: device-management stores it with the profile's draft but does not interpret the detection language. It is compiled and cost-checked by the detection engine when the profile is published, and a rule takes effect on devices only through a published profile version. Edge-triggered rules raise and resolve alarms; an operator acknowledges and clears the alarms through the alarm mutations.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
authoredVia[AuthoredVia!]!Sorted set of all recorded save doors. Saves accumulate doors, so editing through FORM never hides DESCRIBE. Legacy NULLs read UNKNOWN.
authoringGraphStringThe visual automation canvas document the rule was authored with, as JSON, so the console can reopen it on the canvas. Null for a rule authored as a form. Authoring metadata only: it is stored verbatim, never interpreted by the platform, and not part of what a profile publish freezes.
createdAtStringWhen the rule was created, as an RFC 3339 timestamp.
definitionString!The authored rule as a JSON document in the detection engine's rule language. Stored as written once it parses as JSON; the engine validates its type and cost when the profile is published.
deletedAtStringAlways null: a deleted rule is removed outright and is not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
deviceProfileDeviceProfile!The device profile the rule is declared on.
enabledBoolean!Whether the rule is live. A disabled rule is kept on the profile but is left out of the rules a published version runs.
entityGroupTokenStringToken of the dynamic entity group that scopes the rule, or null for a rule that applies to every device of the profile. Set together with entityGroupVersion: the engine fires the rule only for events whose entity is a member of that published group version.
entityGroupVersionIntPublished version of the entity group that scopes the rule. Null exactly when entityGroupToken is null.
idID!Server-assigned numeric identifier, as a string. Address a rule by its token instead where you can.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
tokenString!Identifier of the rule, unique within the tenant. It cannot be changed after creation.
updatedAtStringWhen the rule was last written, as an RFC 3339 timestamp.

DetectionRuleSearchResults​

object

One page of detection rules.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[DetectionRule!]!The rules on this page.

Device​

object

A device: one connected thing the platform receives events from and sends commands to. What it measures and accepts comes from its device type's profile.

Implements Model, TokenReference, NamedEntity, MetadataEntity, Entity

FieldTypeDescription
aliases[DeviceAlias!]The names a sender other than the platform knows this device by, such as a LoRaWAN DevEUI, ordered by scheme. An inbound integration finds the device by one of these. Empty when the device has none. Null, and never an empty list, for a caller limited to part of the tenant: aliases are not shown to it.
childrenDeviceSearchResults!The devices behind this device, one page at a time. Empty unless the device is a gateway. Requires device:read.

Arguments:
pagination: PaginationInput! — Which page to return.
createdAtStringWhen the device was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted devices are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
deviceTypeDeviceType!The device's type.
disabledAtStringWhen the device was disabled, as an RFC 3339 timestamp; null while it is enabled.
enabledBoolean!False when the device has been disabled. A disabled device's events are discarded rather than stored, it cannot open a new broker connection, and commands sent to it are refused with DEVICE_DISABLED. Its data, credentials and configuration are kept.
expectedProvisioningProfileProvisioningProfileThe provisioning profile this device is earmarked for, or null when it is earmarked for none (or the profile was deleted). Only that profile may adopt it when it registers itself. Requires device:read, unscoped.
externalIdStringOptional business identifier you assign, such as a serial number or VIN, up to 256 characters. Unique within the tenant when set. It is only a lookup key: devices are not addressed or authenticated by it.
gatewayDeviceThe gateway this device is behind, or null when it is behind none. Only that gateway's credential may publish this device's telemetry on the gateway's own topics; the device's own credential still works as before.
idID!Server-assigned numeric identifier, as a string. Address a device by its token instead where you can.
installedPositionInstalledPositionWhere the device was installed, for a device that is fixed in place. Needs location:installed:read (location:read includes it). Null for a caller without it, and null when no position was recorded. This is installation data only: it never falls back to a position the device reported, even when the device also reports GPS.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
positionWithheldBoolean!Whether installedPosition is withheld from this caller. It concerns the INSTALLED position only, not any position the device reports. True for every device a caller without location:installed:read (or location:read) reads, whether or not the device has an installed position, and false for every device a caller with it reads. It depends on the caller alone, so it does not reveal whether a position exists.
tokenString!Identifier of the device, unique within the tenant. It cannot be changed after the device is created.
updatedAtStringWhen the device was last written, as an RFC 3339 timestamp.

DeviceAlias​

object

One name a sender other than the platform knows a device by. The pair is unique within the tenant, and a device has at most one value per scheme.

FieldTypeDescription
schemeString!Whose vocabulary the value is in: lorawan.deveui, tts.device-id, or custom.<name> for a name you chose.
valueString!The value in its stored spelling. A lorawan.deveui value is 16 upper-case hexadecimal digits whatever case it was written in, and a tts.device-id value is lower case.

DeviceClaim​

object

A device's possession claim: a one-time, optionally expiring secret that an eventual owner presents to assign the device to a customer. The claim secret is write-only and is never exposed on this type; only a keyed digest is stored.

Implements Model

FieldTypeDescription
claimedByCustomerCustomerThe customer the device was assigned to when the claim was redeemed. Null unless the claim has been redeemed.
claimedTimeStringWhen the claim was redeemed, as an RFC 3339 timestamp. Null unless the claim has been redeemed.
createdAtStringWhen the claim was first opened, as an RFC 3339 timestamp.
deletedAtStringWhen the claim was deleted, as an RFC 3339 timestamp; null for a live claim.
deviceDevice!The device the claim is on. A device has a single claim, which initiating again reopens.
expiresAtStringWhen the claim stops being redeemable, as an RFC 3339 timestamp. Null means it does not expire. Redeeming an expired claim is refused.
idID!Server-assigned numeric identifier, as a string.
statusString!OPEN while the claim can be redeemed, CLAIMED once it has been redeemed, CANCELED once it was closed without assigning the device.
updatedAtStringWhen the claim was last written, as an RFC 3339 timestamp.

DeviceCommandVocabulary​

object

The commands a device currently accepts, from its profile's active published version.

FieldTypeDescription
commands[PublishedCommand!]!The accepted commands; empty when not constrained.
constrainedBoolean!True when the device accepts only the listed commands. False when its published profile declares no commands, or it has no published profile: any command key is then accepted, and commands is empty.

DeviceConfiguration​

object

A device's configuration: the latest revision it should hold, what it last reported, and whether the two agree.

FieldTypeDescription
desiredDeviceConfigurationRevisionThe latest minted revision, or null when none has been minted for this device.
invalid[String!]!Declared keys whose stored value cannot be carried as the declared value type (written with another type, or unparseable). They are left out of the document.
pendingBoolean!True when a revision exists and the device has not reported APPLIED for that same revision with that same digest. Equal values under a different revision or digest do not count as applied.
reportedDeviceConfigurationReportThe device's last report, or null when it has never reported.
staleBoolean!True when the document the device's current profile declaration and shared attributes would build differs from the latest revision - for example after a profile publish declared new keys. A newer revision is minted when a declared key is next written or the device next synchronizes.
undeclared[String!]!The device's shared attribute keys that its declaration does not name. They are never part of the document.

DeviceConfigurationReport​

object

The configuration state a device last reported. Written only from the device's own reports; no mutation sets it.

FieldTypeDescription
digestStringThe digest the device reported for that revision.
errors[String!]!The device's reasons for a REJECTED report; empty otherwise.
lastSyncAtStringWhen the device last asked for its configuration.
reportedAtStringWhen the device made the report.
revisionIntThe revision the device reported, or null when it has not reported one.
statusStringRECEIVED, APPLIED or REJECTED.

DeviceConfigurationRevision​

object

One immutable revision of a device's configuration document: the values of the shared attribute keys its profile's active published version declares as device-visible. Revisions are append-only; a new one is minted only when the document changes.

FieldTypeDescription
actorString!The authenticated subject whose attribute change minted the revision; empty when none was recorded.
createdAtStringWhen the revision was minted.
digestString!"sha256:" followed by the lowercase hex SHA-256 of the document bytes. A device converges on a revision by reporting this revision number and this digest. A device hashes the bytes it receives and never re-serializes them to check the digest.
documentString!The document as canonical JSON text: an object of declared key to typed value with keys sorted. These are exactly the bytes the digest covers.
revisionInt!The revision number: 1 for the device's first document and one higher for each later one. A number is never reused for the same device.

DeviceConfigurationRevisionSearchResults​

object

A page of a device's configuration revisions, newest first.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the device's whole revision history.
results[DeviceConfigurationRevision!]!The revisions on this page, highest revision number first.

DeviceConstant​

object

One constant a device holds under a requested name.

FieldTypeDescription
keyString!The name.
numberFloatThe value, or null when the device's metadata holds the name but not a finite number (a string, a boolean, null, an object): present and unusable, which is not absent.

DeviceConstantsEntry​

object

The requested constants one device holds.

FieldTypeDescription
constants[DeviceConstant!]!The requested names the device's metadata holds.
deviceTokenString!The device's token.

DeviceConstantsPage​

object

One page of device constants.

FieldTypeDescription
entries[DeviceConstantsEntry!]!The devices on this page that hold at least one requested name.
nextCursorStringThe cursor to pass as afterId for the next page; null when the walk is complete.

DeviceCredential​

object

Authentication material for a device, which can be rotated. A device has any number of credentials; each is one of ACCESS_TOKEN, MQTT_BASIC or X509_CERTIFICATE. Secrets are stored only as keyed digests: an access token is returned once, in the response to the write that set it, and no password or secret is ever returned on a read. Reading credentials requires device:write, because whoever could read them could impersonate the device.

Implements Model, TokenReference, MetadataEntity

FieldTypeDescription
certificateX509CertificateThe certificate an X509_CERTIFICATE credential pins, or null for any other type. Requires device:read, unscoped.
createdAtStringWhen the credential was created, as an RFC 3339 timestamp.
credentialIdString!What the device presents. For MQTT_BASIC, the username. For ACCESS_TOKEN, the access token itself ONLY in the response to the create, update or replacement that set it, which is the one time it can be read: the platform stores an access token as a keyed digest and cannot return it afterwards. Every later read returns a fingerprint that identifies the credential and cannot be presented as the token. If the token is lost, set a new one with updateDeviceCredential. For X509_CERTIFICATE it is the SHA-256 of the device certificate (hex), computed by the server; it is public and is not something a device presents.
credentialTypeString!The kind of credential: ACCESS_TOKEN, MQTT_BASIC or X509_CERTIFICATE.
credentialValueStringAlways null. It is accepted when a credential is written but never returned, so a stored secret such as an MQTT_BASIC password cannot be read back out through the API.
deletedAtStringAlways null: a deleted credential is removed outright and is not returned.
deviceDevice!The device this credential authenticates.
enabledBoolean!Whether the credential can authenticate. A disabled credential is kept but refused at connect.
expiresAtStringWhen the credential stops authenticating, as an RFC 3339 timestamp. Null means it never expires.
idID!Server-assigned numeric identifier, as a string. Address a credential by its token instead where you can.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
provisioningProfileProvisioningProfileThe provisioning profile whose registration issued this credential, or null for a credential an operator created. Requires device:read, unscoped.
tokenString!Identifier of the credential record, unique within the tenant. It is not what a device presents; see credentialId.
updatedAtStringWhen the credential was last written, as an RFC 3339 timestamp.

DeviceCredentialSearchResults​

object

One page of device credentials.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[DeviceCredential!]!The credentials on this page.

DeviceDecoderPlan​

object

What the ingest path needs to know about the payload decoder of a device's type.

FieldTypeDescription
composedCostInt!The part of the static worst-case cost that does not depend on the size of the uplink.
inputPayloadDecoderInputThe input an uplink must carry for the decoder to run; null when there is no decoder.
maxReadingsInt!The most readings one decode produces; 0 when there is no decoder this build can run.
parsesJsonBoolean!Whether the decoder reads the JSON body, parsed and priced by size.
presentBoolean!Whether the active published version declares a decoder, usable or not.
profileVersionTokenString!The profile version the answer is for, as "{profile}@{version}"; empty when there is no decoder.

DeviceGroupTargetPage​

object

One page of the devices an entity group contains, for use as the target of a command.

FieldTypeDescription
codeStringWhy the group was refused, as a stable code; null when not rejected. One of GROUP_NOT_FOUND, GROUP_NOT_A_DEVICE_GROUP (it contains something other than devices), GROUP_NOT_PUBLISHED (a dynamic group that was never published), GROUP_VERSION_NOT_FOUND (the requested version does not exist) or GROUP_NOT_VERSIONED (a version was requested for a static group).
deviceTokens[String!]!The device tokens on this page, in ascending order of the devices' ids.
nextCursorStringOpaque cursor to pass as afterId for the next page. Null when this page holds fewer tokens than the limit; a full page always carries a cursor, so a walk can end with an empty page.
reasonStringWhy the group was refused, in words a person can act on; null when not rejected.
rejectedBoolean!True when the group cannot be a command target. code and reason then explain why, and the empty deviceTokens list does not mean the group has no members.
resolvedVersionIntThe dynamic group's published version this page was resolved from; null for a static group.

DeviceImportResult​

object

The per-row outcomes of an importDevices call, with their totals.

FieldTypeDescription
conflictInt!Rows that clash with an existing device or one of its unique values; nothing was written for them.
createdInt!Rows whose device was created (on a dry run: would be created).
dryRunBoolean!True when nothing was written.
existsInt!Rows whose device already exists exactly as described, so nothing was written.
invalidInt!Rows refused because a value is malformed, missing or duplicated within the file.
refusedInt!Rows refused because what they ask for is not supported, such as an unsupported credential type.
rows[DeviceImportRowResult!]!One outcome per request row, in request order.

DeviceImportRowResult​

object

The outcome of one row of an import.

FieldTypeDescription
codeStringA machine-readable reason for every outcome but CREATED and EXISTS: CONFLICT, INVALID_VALUE, NOT_FOUND, LIMIT_EXCEEDED, DUPLICATE_IN_FILE or UNSUPPORTED.
messageStringWhat is wrong. It never contains a credential secret, but may repeat a token the row supplied, such as a device type token.
outcomeDeviceImportOutcome!What happened to this row: created, already present unchanged, in conflict with an existing device, invalid, or refused.
rowInt!The row's position in the request, starting at 1.
tokenString!The row's device token.

DeviceLocationCapability​

object

Whether a device reports its own position, according to the active published version of its profile (not the draft). Location data is accepted whether or not it is declared, so an undeclared device may still have stored positions.

FieldTypeDescription
declarationDeviceLocationDeclarationThe declaration, or null when declared is false. An empty object is a real answer: the device reports position and no expectations are stated.
declaredBoolean!True when the published version declares that the device reports position. False when the device's type has no profile, the profile was never published, or the published version declares nothing.

DeviceLocationDeclaration​

object

A statement that devices report their own position, with what to expect of it. The object being present is the statement; both fields are optional, so an empty object still means the devices report position. It is descriptive only: location data is accepted and stored whether or not a declaration exists.

FieldTypeDescription
expectedAccuracyMetersFloatHorizontal accuracy to expect from these devices, in metres, or null when not stated. Descriptive only: a less accurate fix is still stored unchanged.
expectedUpdateIntervalSecondsIntHow often a position fix is expected, in seconds, or null when not stated. Descriptive only: nothing is raised when fixes arrive less often.

DeviceMetricVocabulary​

object

The metrics a device's measurements are validated against, from the active published version of its profile (not the draft).

FieldTypeDescription
metrics[PublishedMetric!]!The published metrics. Empty when the device's type has no profile, the profile was never published, or the published version declares no metric. Empty does not mean the device may send nothing: a measurement whose key is not declared is accepted without validation, provided its value is a number.

DeviceProfile​

object

The capability contract a device type adopts: the metrics its devices report, the commands they accept, the detection rules evaluated against them and whether they report their own position. What you edit is a draft; publishDeviceProfile freezes the draft into a numbered version, and devices use only the active published version. Many device types may share one profile.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
activationsDeviceProfileActivationPage!The profile's activation log, newest first: every time a version became the one devices resolve, by publish or by rollback. Use it to find which version was active at a given time: it is the entry with the latest activatedAt not after that time. The log begins when the platform release that introduced it was installed, so a profile last activated before that has no entry for that activation; treat the absence as unknown, not as inactive. Page with first and after. Requires device:read.

Arguments:
after: String — The nextCursor of the previous page. Omit it to start at the newest entry. A malformed cursor fails the request.
first: Int — Maximum number of entries to return, at least 1. Omitted, or above 1000, it is 1000; below 1 is refused.
activeProfileVersionDeviceProfileVersionThe published version a device currently resolves through this profile, with the content frozen into it, or null until the profile is first published. Read the declaration devices actually see from here, not from the draft fields above.
activeVersionIntThe published version devices currently use, or null if the profile has never been published. Until then devices of this profile have no declared metrics or commands.
categoryStringFunctional class of the devices, such as thermostat or meter: free text, up to 64 characters. facetValues lists the values already in use.
commandDefinitions[CommandDefinition!]!The command definitions in the draft. Devices use the active published version, so a change here takes effect only when the profile is published.
configurationDeclaration[ConfigurationKey!]!The profile's DRAFT device-visible configuration declaration: the shared attribute keys a device of this profile may see. Empty when nothing is declared, in which case a device sees an empty document. Like every draft field, it reaches devices only when the profile is published; the declaration frozen into each published version never changes.
createdAtStringWhen the profile was created, as an RFC 3339 timestamp.
decoderPayloadDecoderThe profile's DRAFT payload decoder: the rules that turn a binary frame or a webhook's JSON into measurements, or null when none is saved. Like every draft field, it reaches devices only when the profile is published; the decoder frozen into each published version never changes.
deletedAtStringAlways null: deleted profiles are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
detectionRules[DetectionRule!]!The detection rules in the draft. Devices use the active published version, so a change here takes effect only when the profile is published.
deviceTypeCountInt!Number of device types that currently adopt this profile.
idID!Server-assigned numeric identifier, as a string. Address a profile by its token instead where you can.
locationDeviceLocationDeclarationThe draft position declaration: present when devices of this profile report their own position, null when they do not. Like the other draft content, it reaches devices only when the profile is published.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
metricDefinitions[MetricDefinition!]!The metric definitions in the draft. Devices use the active published version, so a change here takes effect only when the profile is published.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
tokenString!Identifier of the profile, unique within the tenant. It can be changed with renameDeviceProfile only while the profile has never been published and no device type currently adopts it.
updatedAtStringWhen the profile was last written, as an RFC 3339 timestamp.

DeviceProfileActivation​

object

One moment a profile version became the version devices resolve.

FieldTypeDescription
activatedAtString!When it became active, as an RFC 3339 timestamp in UTC. For a rollback this is when the rollback happened, not when the version was published.
activatedByStringWho did it: their username, or their email when there is no username. Null when not recorded.
kindString!Why it became active: PUBLISH when the version was just published, ROLLBACK when an earlier version was made active again.
versionInt!The version that became active.

DeviceProfileActivationPage​

object

One page of a profile's activation log.

FieldTypeDescription
entries[DeviceProfileActivation!]!The entries on this page, newest first.
nextCursorStringThe cursor to pass as after for the next page; null when this is the last page.

DeviceProfileSearchResults​

object

One page of device profiles matching a search.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[DeviceProfile!]!The device profiles on this page.

DeviceProfileVersion​

object

An immutable, published snapshot of a profile's metric, command and detection-rule definitions and its position declaration. Versions are never deleted while the profile exists; rollbackDeviceProfile makes an earlier one active again.

FieldTypeDescription
authoredVia[AuthoredVia!]!Sorted set of save doors of all frozen draft rules, including disabled rules. A later save adds a door and never erases DESCRIBE. UNKNOWN includes legacy rules; an empty rule set reads UNKNOWN. Frozen at publish.
automationReviewAutomationReview(Preview: may change in a minor release.) The review consumed by this version, or null when none was consumed. Requires device:read and event:read and an unscoped caller; authorization failures affect only this field.
automationReviewTokenString(Preview: may change in a minor release.) The automation review this version consumed when it was published, or null when it was published without one.
commands[PublishedCommand!]!The commands frozen into this version, each with the impact it was published with. Empty when the version declares none, in which case a device accepts any command key. It never changes after publication.
configurationDeclaration[ConfigurationKey!]!The device-visible configuration declaration frozen into this version: the shared attribute keys a device of the profile may see. Empty when the version declared nothing, including every version published before declarations existed. It never changes after publication.
decoderPayloadDecoderThe payload decoder frozen into this version, or null when it declared none, including every version published before decoders existed. It never changes after publication.
descriptionStringOptional notes given at publish time.
labelStringOptional label given at publish time, such as a release name. Not interpreted.
metrics[PublishedMetric!]!The metrics frozen into this version, in declaration order: what a device's measurements are validated against while this version is active. Calculated metrics are included and marked. It never changes after publication.
publishedAtString!When the version was published, as an RFC 3339 timestamp.
publishedByStringWho published it: their username, or their email when there is no username.
publishedByIdStringAuthenticated principal id (the token subject) of the publisher, taken from the caller's token and never supplied by a client. For a person it is their sign-in email, which cannot be changed; for a service account it is service-account: followed by the account's token. A superuser acting in a tenant through break-glass is recorded by their own sign-in email. Null for versions published before it was recorded.
thingModelString!This version as a W3C Web of Things Thing Model (TD 1.1), as JSON-LD text. Each metric is a read-only, observable property typed from its data type, with its unit, bounds, allowed values and descriptor (as the property's @type); each command is an action whose input is its typed parameters. A Thing Model describes every device of the profile, so it carries no device address, protocol binding or security. Detection rules, the location and configuration declarations, and metadata are not part of it. The title and description are the profile's current ones, so the text changes only when those do. A version holding a constraint a Thing Model cannot express exactly (allowed values that are not text, or that repeat once typed; bounds on a non-numeric metric) is refused with an error rather than exported without it. A descriptor is emitted as written, so it should be an absolute IRI or a prefixed term the consumer knows.

Arguments:
includeSemanticTypes: Boolean! = false — When true, each property's @type becomes a list, in this order and without repeats: the descriptor (when set), the metric's semantic property IRI and its semantic point class IRI (each when bound). When false, the default, the document is exactly what it has always been.
versionInt!Version number: 1 for the first publish of the profile, increasing by one with each publish.

DeviceReplaceResult​

object

What replaceDevice returns.

FieldTypeDescription
deviceDevice!The surviving device identity, unchanged.
newCredentialDeviceCredential!The credential minted for the incoming unit. This is the one moment the material the new unit must be programmed with can be read: an access token is stored only as a digest and cannot be read again, so copy it from here.
replacementDeviceReplacement!The append-only record this call wrote.
retiredCredentialTokens[String!]!Tokens of the credential records this call disabled. Tokens only: the records themselves stay behind the credential queries.

DeviceReplacement​

object

One append-only record of a physical unit swap: the failed hardware was retired and a new unit bound to the same logical device identity, so the device's events, alarms, relationships, group membership and command vocabulary carry forward unbroken. Written only by replaceDevice; it can be neither updated nor deleted and carries no token.

FieldTypeDescription
actorString!The authenticated subject that performed the replacement, taken from the caller's token rather than the request.
createdAtStringWhen the record was written, as an RFC 3339 timestamp.
deviceDevice!The logical device identity that survived the swap, unchanged by it.
idID!Server-assigned numeric identifier, as a string.
newCredentialTokenString!Token of the credential record minted for the incoming unit.
newCredentialTypeString!Type of the credential minted for the incoming unit.
occurredTimeString!When the replacement was applied, as an RFC 3339 timestamp from the server's clock. Never supplied by the caller.
reasonStringThe operator's free-text note, for example water ingress or an RMA number. Null when none was given.
retiredCredentialTokens[String!]!Tokens of the credential records this replacement disabled. Tokens rather than credential ids, because the id of an ACCESS_TOKEN credential is the device's token.
unitIdentifierStringThe incoming physical unit's own identifier, such as a manufacturer serial or IMEI. Recorded here and deliberately not written onto the device's external id, which is the stable business key of the logical thing and survives a swap. Null when none was given.

DeviceReplacementSearchResults​

object

One page of device replacement records, newest first.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[DeviceReplacement!]!The records on this page.

DeviceRevocationList​

object

The current CRL of one issuer under a trust anchor. Its entries are listed through deviceRevokedCertificates.

FieldTypeDescription
crlNumberString!The CRL number, as a decimal string (up to 20 octets).
crlSha256String!SHA-256 of the CRL's DER, hex.
entryCountInt!How many certificates the list revokes.
issuerKeyString!SHA-256 of the signer's public key, hex. With issuerName, identifies the issuer.
issuerNameString!SHA-256 of the signer's subject, hex.
issuerSubjectString!The CRL signer's subject, for display.
nextUpdateString!The CRL's nextUpdate, as an RFC 3339 timestamp.
sourceString!UPLOAD.
statusRevocationStatus!The list's freshness now.
thisUpdateString!The CRL's thisUpdate, as an RFC 3339 timestamp.

DeviceRevocationListResult​

object

The outcome of storing a revocation list.

FieldTypeDescription
listDeviceRevocationList!The list now in force for the issuer.
newlyRevokedInt!How many certificates the list revokes that the issuer's previous list did not.
sessionsEndedBoolean!True when the live broker sessions of the devices the list newly revokes were confirmed ended. False when the list is stored and new connects are refused, but a session already open could not be confirmed ended: the retry (automatic, and on repeating the upload, which is idempotent) ends it, or its token expires.
unchangedBoolean!True when this very CRL was already the current list and nothing was written.

DeviceRevokedCertificate​

object

One revoked certificate in a trust anchor's revocation store. A MANUAL entry names a certificate by fingerprint and refuses it wherever it appears on a verified path (a leaf or an intermediate), registered or not, whatever later becomes of its credential or its device.

FieldTypeDescription
fingerprintSha256StringSHA-256 of the certificate, hex. Set on a MANUAL entry.
issuerKeyStringSHA-256 of the issuing CA's public key, hex. Set on a CRL entry.
kindString!MANUAL (revoked here, by fingerprint) or CRL (from a stored CA revocation list).
reasonCertificateRevocationReason!Why it was revoked.
revokedAtString!When it was revoked, as an RFC 3339 timestamp.
serialStringThe certificate's serial number, hex. Set on a CRL entry.
sessionsEndedBooleanSet only on the result of revokeDeviceCertificate, null everywhere else. True when the live broker sessions of the devices the revocation affects were confirmed ended. False when the revocation is saved and new connects are refused, but a session already open could not be confirmed ended: it may still be publishing until the retry (automatic, and on repeating the mutation, which is idempotent) ends it, or its token expires.

DeviceRevokedCertificateSearchResults​

object

A page of revoked certificates.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the whole result.
results[DeviceRevokedCertificate!]!The entries on this page.

DeviceRosterEntry​

object

One device as the detection engine's roster holds it.

FieldTypeDescription
deviceTokenString!The device's token.
expectedSinceString!When the device's membership of that profile began, as an RFC 3339 timestamp: its creation, or the last re-typing of the device or re-pointing of its type.
profileTokenString!Token of the profile the device's type adopts; empty when it adopts none.

DeviceRosterPage​

object

One page of the device roster.

FieldTypeDescription
entries[DeviceRosterEntry!]!The devices on this page.
nextCursorStringThe cursor to pass as afterId for the next page; null when the walk is complete.

DeviceScopeAnchors​

object

The anchors of one device: what decides which members limited to part of the tenant can see records about it.

FieldTypeDescription
anchors[String!]!One entry per tracked relationship from the device, written as type:token (for example customer:acme). Empty when the device has no tracked relationship.
deviceTokenString!The device's token, as it was named in the request.

DeviceSearchResults​

object

One page of devices matching a search.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[Device!]!The devices on this page.

DeviceThresholdAttribute​

object

One numeric device attribute that a dynamic detection threshold can read.

FieldTypeDescription
deviceTokenString!Token of the device the attribute belongs to.
keyString!The attribute's key.
scopeString!The attribute's scope: SHARED or SERVER.
updatedAtString!When the attribute was last written, as an RFC 3339 timestamp.
valueFloat!The attribute's numeric value.

DeviceThresholdAttributePage​

object

One page of numeric device attributes. A page can hold fewer entries than the limit and still have a nextCursor; only a null cursor ends the walk.

FieldTypeDescription
entries[DeviceThresholdAttribute!]!The attributes on this page.
nextCursorStringThe cursor to pass as afterId for the next page; null when the walk is complete.

DeviceTrustAnchor​

object

A CA certificate a tenant trusts to vouch for its devices' client certificates. It is public material. An X509_CERTIFICATE credential, and a certificate provisioning profile, name the anchor their chain must reach, and it is checked at EVERY connect: disabling the anchor withdraws the CA at once and ends the live sessions of the devices that rely on it. A root or an intermediate may be an anchor; anchor at the narrowest intermediate to trust one sub-CA of a manufacturer's PKI. Name constraints on an anchor or on any CA below it are not supported and are refused: identity is the certificate's subject common name, which name constraints do not cover.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
certificatePemString!The CA certificate, PEM.
createdAtStringWhen the anchor was created, as an RFC 3339 timestamp.
credentialCountInt!How many credentials rely on the anchor, soft-deleted ones included (they hold the delete refusal too).
deletedAtStringAlways null: deleted anchors are not returned by this API.
descriptionStringFree-text description. Null when none is set.
enabledBoolean!False withdraws the CA: no chain to it authenticates, and the devices relying on it are disconnected.
fingerprintSha256String!SHA-256 of the certificate, hex. Unique within the tenant.
idID!Server-assigned numeric identifier, as a string.
issuerString!The certificate's issuer distinguished name; equal to the subject for a root.
metadataStringFree-form JSON the platform stores and does not interpret. Null when none is set.
nameStringHuman-readable name. Null when none is set.
notAfterString!When the certificate expires, as an RFC 3339 timestamp. Chains to it stop authenticating then.
notBeforeString!When the certificate becomes valid, as an RFC 3339 timestamp.
ocspModeCertificateOcspMode!Whether, and how strictly, a certificate's status is also asked of its issuer's online OCSP responder when a device connects. OFF (the default) asks nothing and sends no request.
ocspResponderUrlStringThe responder every OCSP request for this anchor goes to, in place of each certificate's own Authority Information Access entry. Null when the certificates' own entries are used.
profileCountInt!How many provisioning profiles authenticate against the anchor.
revocationLists[DeviceRevocationList!]!The current CRL of each issuer the anchor holds one for.
revocationModeCertificateRevocationMode!How the anchor treats the completeness of its revocation lists. ENTRIES (the default) refuses every certificate a stored list or manual entry names and admits the rest, however old the lists are; REQUIRE_CURRENT also refuses a certificate whose issuer has no current list.
revocationStaleGraceString!How long past a list's nextUpdate it still counts as current under REQUIRE_CURRENT, as a Go duration (for example "24h0m0s"). The instance default when the anchor sets none.
revocationStatusRevocationStatus!The worst freshness over the anchor's lists: NONE when it holds no list, otherwise the most stale of them.
subjectString!The certificate's subject distinguished name.
tokenString!Identifier of the anchor, unique within the tenant.
updatedAtStringWhen the anchor was last written, as an RFC 3339 timestamp.

DeviceTrustAnchorSearchResults​

object

A page of trust anchors.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the whole result.
results[DeviceTrustAnchor!]!The anchors on this page.

DeviceType​

object

A kind of device: what it is (manufacturer and model), how it is displayed, and the device profile that defines what its devices measure and accept. Every device has exactly one device type, and many types may share one profile.

Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity

FieldTypeDescription
backgroundColorStringBackground colour to display the device type with, up to 32 characters. Not validated.
borderColorStringBorder colour to display the device type with, up to 32 characters. Not validated.
commandChannelStringHow the devices of this type receive their commands. PUBLISH, or null, is the default: the command is published to the device's subject and delivered by the transport the device is connected on. HTTP_PULL holds the type's commands until the device asks for them with an authenticated GET to its commands endpoint.
createdAtStringWhen the device type was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted device types are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
foregroundColorStringForeground (text) colour to display the device type with, up to 32 characters. Not validated.
iconStringName of an icon representing the device type, up to 128 characters. Not checked against any icon set.
idID!Server-assigned numeric identifier, as a string. Address a device type by its token instead where you can.
imageUrlStringURL of an image representing the device type, up to 512 characters.
maintenanceWindowMaintenanceWindowThe maintenance window that holds this type's disruptive commands until it opens, or null when the type has none. Commands whose definition has impact DISRUPTIVE or DESTRUCTIVE wait for the window; every other command is sent whenever the device is reachable.
manufacturerStringManufacturer of the devices of this type: free text, up to 128 characters. facetValues lists the values already in use.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
modelStringModel of the devices of this type: free text, up to 128 characters. facetValues lists the values already in use.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
profileDeviceProfileThe device profile this type adopts, or null when it adopts none. Devices of a type with no profile have no declared metrics or commands.
semanticTypes[SemanticTerm!]The classes this type is, as terms of the vocabularies the tenant has enabled; empty when it is bound to none. Each carries its expanded IRI and a display CURIE. Null only when the terms could not be rendered, with an error saying why.
tokenString!Identifier of the device type, unique within the tenant.
updatedAtStringWhen the device type was last written, as an RFC 3339 timestamp.

DeviceTypeSearchResults​

object

One page of device types matching a search.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[DeviceType!]!The device types on this page.

DisabledDevicePage​

object

One page of the tokens of the tenant's disabled devices.

FieldTypeDescription
deviceTokens[String!]!The tokens of the disabled devices on this page.
nextCursorStringThe cursor to pass as afterId for the next page; null when the walk is complete.

EntityAttribute​

object

A single current-state attribute of an entity: a key and value in one scope. Unlike an event, an attribute is a mutable row; writing the same entity, scope and key replaces the value. The value is stored as text with a type tag so consumers can coerce it.

Implements Model

FieldTypeDescription
attrKeyString!The attribute's key, up to 128 bytes.
createdAtStringWhen the attribute was first written, as an RFC 3339 timestamp.
deletedAtStringAlways null: a deleted attribute is removed outright and is not returned.
entityEntity!The entity the attribute belongs to.
entityTypeString!Entity type of the owner, for example device.
idID!Server-assigned numeric identifier, as a string.
lastUpdatedStringWhen the value was last set, as an RFC 3339 timestamp.
scopeString!Who owns the attribute: CLIENT, reported by the device; SERVER, set by the platform and hidden from the device; or SHARED, set by the platform and readable by the device, which also subscribes to it.
updatedAtStringWhen the attribute row was last written, as an RFC 3339 timestamp.
valueStringThe attribute's value as text, interpreted by valueType. Null when none is set. At most 64 KiB.
valueTypeString!How to read value: STRING, LONG, DOUBLE, BOOLEAN or JSON.

EntityAttributeSearchResults​

object

One page of entity attributes.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[EntityAttribute!]!The attributes on this page.

EntityGroup​

object

A group of entities of one family: devices, assets, areas or customers. Membership is either static (members are added explicitly over relationships of the member type) or dynamic (a selector over the members' facet attributes, evaluated when the group is read). A dynamic group is versioned: publishing freezes the selector as an immutable version, which detection rules and access scopes then pin to.

Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity, Entity

FieldTypeDescription
accessScopeBoolean!Whether the group is an access scope: a group a member's access can be limited to. A member limited to it sees the devices in the group at its active version — and only while they are in it — and the history recorded while they were. Set with setEntityGroupAccessScope.
activeVersionIntThe published version whose frozen selector rule-scoped resolution reads. Null until a dynamic group is first published, and always null for a static group, which is never versioned.
backgroundColorStringBackground colour to display the group with, up to 32 characters. Not validated. Null when none is set.
borderColorStringBorder colour to display the group with, up to 32 characters. Not validated. Null when none is set.
createdAtStringWhen the group was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: a deleted group is removed outright and is not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
foregroundColorStringForeground (text) colour to display the group with, up to 32 characters. Not validated. Null when none is set.
iconStringName of an icon representing the group, up to 128 characters. Not checked against any icon set. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address a group by its token instead where you can.
imageUrlStringURL of an image representing the group, up to 512 characters. Null when none is set.
memberTypeString!The entity family the group collects: device, asset, area or customer. Fixed at creation.
membersEntityGroupMemberSearchResults!The resolved members of the group: a static group's explicit members, or the entities a dynamic group's selector matches now. A consumer does not need to branch on mode. Always bounded and paginated.

Arguments:
pagination: PaginationInput! — The page of members to return.
membershipModeString!How members are determined: static, for members added explicitly, or dynamic, for members matched by selector. Fixed at creation.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
selectorStringThe membership predicate, a CEL expression over the members' facet attributes. Present only for dynamic groups; null for a static group. This is the editable draft: the selector a published version froze is on that version.
tokenString!Identifier of the group, unique within the tenant. It cannot be changed after creation.
updatedAtStringWhen the group was last written, as an RFC 3339 timestamp.
versions[EntityGroupVersion!]!The group's published versions, newest first. Empty for a group that has never been published, and always empty for a static group.

EntityGroupMember​

object

A resolved member of an entity group: the lightweight identity of one entity, enough to look up the full record. The entity family is the group's memberType, so it is not repeated per member.

FieldTypeDescription
idID!Numeric id of the member entity, as a string.
tokenString!Token of the member entity.

EntityGroupMemberSearchResults​

object

One page of an entity group's resolved members.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full member set.
results[EntityGroupMember!]!The members on this page.

EntityGroupSearchResults​

object

One page of entity groups.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[EntityGroup!]!The groups on this page.

EntityGroupVersion​

object

An immutable published snapshot of a dynamic entity group's selector. A detection rule scopes to a specific group and version, so the set of entities it covers cannot change under a later selector edit.

FieldTypeDescription
descriptionStringOptional description of what the version changes. Null when none was given.
labelStringOptional label given at publish. It may embed a semantic version string, which is not parsed.
memberTypeString!The entity family the group collects, frozen with the version.
publishedAtString!When the version was published, as an RFC 3339 timestamp.
publishedByStringThe identity that published the version: its username, falling back to its email. Null when not recorded.
selectorString!The membership selector frozen at publish.
versionInt!Version number, increasing per group.

EntityRef​

object

A reference to an entity by its type and token, returned from a query.

FieldTypeDescription
tokenString!Token of the entity.
typeString!Entity type, for example device, asset, area, customer or group.

EntityRelationship​

object

A directed relationship edge between two entities, of a given relationship type. The source and target are each addressed by entity type and token.

Implements Model, TokenReference, MetadataEntity

FieldTypeDescription
createdAtStringWhen the relationship was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: a removed relationship is deleted outright and is not returned.
idID!Server-assigned numeric identifier, as a string. Address a relationship by its token instead where you can.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
relationshipTypeEntityRelationshipType!The kind of relationship the edge is.
sourceEntity!The entity the edge points from.
sourceTypeString!Entity type of the source entity.
targetEntity!The entity the edge points to.
targetTypeString!Entity type of the target entity.
tokenString!Identifier of the relationship, unique within the tenant.
updatedAtStringWhen the relationship was last written, as an RFC 3339 timestamp.

EntityRelationshipSearchResults​

object

One page of entity relationships.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[EntityRelationship!]!The relationships on this page.

EntityRelationshipType​

object

A kind of relationship between entities, such as assigned or contains. One table of types serves every entity family. A tracked type marks relationships whose edges are denormalized onto events for indexing, and only tracked relationships count as ownership for members whose access is limited to part of the tenant.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
createdAtStringWhen the relationship type was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: a deleted relationship type is removed outright and is not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address a relationship type by its token instead where you can.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
semanticInverseSemanticTermThe predicate's inverse (for example brick:isFedBy), or null when there is none.
semanticPredicateSemanticTermThe vocabulary predicate this relationship is (for example brick:feeds), or null when it is bound to none.
tokenString!Identifier of the relationship type, unique within the tenant. It cannot be changed after creation.
trackedBoolean!Whether relationships of this type are tracked: denormalized onto events so they can be indexed and filtered by, and counted as ownership for scoped access.
updatedAtStringWhen the relationship type was last written, as an RFC 3339 timestamp.

EntityRelationshipTypeSearchResults​

object

One page of entity relationship types.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[EntityRelationshipType!]!The relationship types on this page.

FacetKey​

object

A per-tenant declaration that an attribute key is a classification facet for a member family. It tells the console which keys to offer as browse and filter axes and as typeahead; it does not store facet values, which remain attributes on the member entities. Addressed by its natural key, memberType and key. Named FacetKey so it is not confused with the device and profile discovery facets read by facetValues.

Implements Model

FieldTypeDescription
createdAtStringWhen the facet key was declared, as an RFC 3339 timestamp.
deletedAtStringAlways null: a deleted facet key is removed outright and is not returned.
idID!Server-assigned numeric identifier, as a string.
keyString!The attribute key this facet declares, for example climate or country.
labelStringAn optional human display label for the axis. Null falls back to key.
memberTypeString!The entity family this facet classifies: device, asset, area or customer.
sourceString!Where the facet's values come from: attribute, for values stored as attributes, or system, for a predefined facet over a modelled column, which cannot be deleted.
updatedAtStringWhen the facet key was last written, as an RFC 3339 timestamp.
valueTypeString!The value type of the facet's attribute values: STRING, LONG, DOUBLE, BOOLEAN or JSON.
values[String!]An optional vocabulary of values that powers the console typeahead. Null when the facet's values are free-form.

FacetKeySearchResults​

object

One page of facet keys.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[FacetKey!]!The facet keys on this page.

FacetValueImportRowResult​

object

The outcome of one facet value import row; never includes its value.

FieldTypeDescription
codeStringMachine-readable reason for INVALID or REFUSED.
keyString!The supplied facet key.
memberTypeString!The supplied member family.
messageStringReason for INVALID or REFUSED, without echoing the supplied value.
outcomeString!SET (would set on a dry run), EXISTS (unchanged), INVALID or REFUSED.
rowInt!One-based position within this call.
tokenString!The supplied entity token.

FleetOperationReadiness​

object

Preview. Deprecated; use BulkChangeReadiness via bulkChangeReadiness. Whether this instance can run bulk changes. May change in a minor release while in preview.

FieldTypeDescription
enforcementFleetOperationEnforcement!Preview. Whether the database enforces the device attribute writer protocol.
executableKinds[String!]!Preview. Operation kinds the caller can run now: the kinds the answering service build executes, while enforcement is ENFORCED and orphanedAttributeRows is 0. Empty otherwise.
orphanedAttributeRowsIntPreview. Device attribute and generation rows in the caller's tenant whose device no longer exists, counted fresh for this request, including soft-deleted attributes. Bulk changes are not activated while this is above zero. Null when the count could not be read; the error names why, and the other facts are still answered.
protocolVersionInt!Preview. Highest bulk-change protocol version the answering service build follows.

GeoFence​

object

An authored geofence: a region that a detection rule can test a device's reported position against, naming the fence by its token. Containment is evaluated by the detection engine, not in the database, so the geometry is stored as an opaque document with no spatial column or index. The tenant's fence-set version is stamped on each resolved location event, which freezes the fences an event is judged against, so replaying history gives the answer it gave at the time. Changing a boundary, creating or deleting a fence mints a new version; renaming a fence does not.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
createdAtStringWhen the fence was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: a deleted fence is removed outright and its token can be reused.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
geometryString!The geometry as a self-describing JSON document: a kind discriminator plus a GeoJSON geometry object, for example {"kind":"POLYGON_2D","geometry":{"type":"Polygon","coordinates":[[[lon,lat],...]]}}. Coordinates are WGS84 (EPSG:4326) decimal degrees in longitude, latitude order. Returned in a canonical form that can differ in whitespace and number formatting from what was written.
idID!Server-assigned numeric identifier, as a string. Address a fence by its token instead where you can.
kindString!The geometry kind, read from the geometry document. POLYGON_2D is the only kind that can be stored; POLYGON_2_5D and VOXEL_3D are reserved names that are refused on write.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
tokenString!Identifier of the fence, unique within the tenant. Detection rules name the fence by it, so it is immutable.
updatedAtStringWhen the fence was last written, as an RFC 3339 timestamp.

GeoFenceGeometry​

object

One archived geometry document and the content address it is filed under. The address is the SHA-256 of exactly these bytes, so a caller should re-derive it to verify what it received rather than trust the association.

FieldTypeDescription
geometryString!The geometry document, in the same envelope as GeoFence.geometry.
hashString!The content address the document is filed under.

GeoFenceManifestEntry​

object

One fence inside a manifest: the token a rule names it by and the content address under which its geometry is stored.

FieldTypeDescription
hashString!The content address of the fence's geometry document, to pass to geoFenceGeometry.
tokenString!The tenant-unique token a rule names this fence by.

GeoFenceSearchResults​

object

One page of geofences.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[GeoFence!]!The fences on this page.

GeoFenceSetManifest​

object

The manifest of one fence-set version: which fences it holds and the content address of each one's geometry. It carries no geometry, so its size depends only on the fence count and it needs no pagination. A holder of a version number uses it to learn what to resolve, then fetches the geometry with geoFenceGeometry.

FieldTypeDescription
fences[GeoFenceManifestEntry!]!The fences of this version, ordered by token.
mintedAtStringWhen the change that minted this version committed, as an RFC 3339 timestamp. For diagnosing how old a held fence set is; never used by containment tests.
versionInt!The version this manifest describes. 0 means the tenant had never created a fence: an empty fence set, known to be empty.

GeoFenceSetSnapshot​

object

The frozen fence set of one fence-set version: the fences that were live when an event stamped with that version was resolved. It is not an entity, has no id and cannot be edited or deleted. Replaying an old event reads the geometry it was resolved against rather than today's fences.

FieldTypeDescription
fencesGeoFenceSnapshotEntrySearchResults!The fences of this version, ordered by token, one page at a time. Paginated because a fence set at the authoring ceiling can exceed what one cross-service response carries. Read pages until pagination.pageEnd reaches pagination.totalRecords. Pages of one version always come from the same fence set, because a version is never rewritten.

Arguments:
pagination: PaginationInput! — The page of fences to return.
versionInt!The version this set is the frozen state of. 0 means the tenant had never created a fence at that time: an empty fence set, known to be empty.

GeoFenceSnapshotEntry​

object

One fence inside a frozen snapshot. Name and description are absent on purpose: a snapshot freezes only what changes what a rule computes, so correcting a fence's name does not change how history reads.

FieldTypeDescription
fenceIdIDThe fence's GeoFence.id, frozen with the snapshot. Null for snapshots written before fence-set snapshots recorded row identity. A token may be reused by a later fence, so this, not the token, says which fence row the snapshot froze.
geometryString!The geometry document as it stood at this version, not the fence's current geometry.
tokenString!The tenant-unique token a rule names this fence by.

GeoFenceSnapshotEntrySearchResults​

object

One page of a frozen fence set's fences.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full fence set.
results[GeoFenceSnapshotEntry!]!The fences on this page, ordered by token.

InstalledPosition​

object

Where a fixed asset was installed: WGS84 decimal degrees, elevation and accuracy in metres.

FieldTypeDescription
accuracyFloatHorizontal accuracy in metres, or null when not recorded.
elevationFloatMetres above the WGS84 ellipsoid, or null when not recorded.
latitudeFloat!Degrees north, -90 to 90.
longitudeFloat!Degrees east, -180 to 180.
sourceInstalledPositionSourceHow the position was obtained.
updatedAtStringWhen the position was recorded, as an RFC 3339 timestamp.

Integration​

object

An inbound integration: a tenant's authenticated sender of device data over HTTP, such as a LoRaWAN network server or a webhook. It holds the bearer token the sender presents, the kind of body it sends, and the device types it may resolve devices of. The token is generated by the server, returned once by createIntegration and rotateIntegrationToken, and never exposed on this type: only a keyed digest of it is stored.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
createdAtStringWhen the integration was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted integrations are not returned by this API.
descriptionStringFree-text description. Null when none is set.
deviceTypes[DeviceType!]!The device types the integration may resolve devices of. A device of any other type is refused, whatever the sender claims.
enabledBoolean!False while an operator has switched the integration off: its token authenticates, and nothing resolves through it.
genericStringA generic sender's settings as a JSON object: where the device identifier is (idFrom), and optionally an array of items (itemsPointer), the sender's own time (timePointer) and an encoded raw frame (framePointer, frameEncoding). Null for the other types.
idID!Server-assigned numeric identifier, as a string.
identityString!How the sender names a device: DEV_EUI, DEVICE_ID, or ALIAS:custom.name for a generic sender.
lastAuthFailureAtStringWhen a request for this integration last failed authentication.
lastUndecodedAtStringWhen the last such uplink arrived.
lastUndecodedSampleStringUp to 512 bytes of the last such frame, hex encoded.
linkMetricsBoolean!Whether the receive-link readings (signal strength, signal-to-noise ratio, gateway count) are stored beside the decoded values.
metadataStringFree-form JSON the platform stores and does not interpret. Null when none is set.
nameStringHuman-readable name. Null when none is set.
tokenString!Identifier of the integration, unique within the tenant. It is part of the URL the sender posts to.
tokenIssuedAtString!When the bearer token was last generated: at creation and at every rotation.
typeString!The kind of sender, which fixes the body format its route parses: CHIRPSTACK_V4, TTS_V3, GENERIC_JSON or GENERIC_BINARY. It cannot be changed after creation.
undecodedCountInt!How many uplinks arrived with nothing to read readings from.
updatedAtStringWhen the integration was last written, as an RFC 3339 timestamp.

IntegrationDecoderPlan​

object

What the ingest path needs to know about the payload decoder of a device type.

FieldTypeDescription
composedCostInt!The part of estimatedCost that does not depend on the size of the uplink: the decoder's expressions alone. The ingest charge adds the parse of the inputs the decoder reads at their actual sizes. 0 when there is no decoder this build can run.
estimatedCostInt!The decoder's static worst-case cost; 0 when there is no decoder this build can run.
inputPayloadDecoderInputThe input an uplink must carry for the decoder to run; null when there is no decoder.
maxReadingsInt!The most readings one decode produces; 0 when there is no decoder this build can run.
parsesDecodedBoolean!Whether the decoder reads the network server's decoded object, parsed and priced by size.
parsesJsonBoolean!Whether the decoder reads the generic item's JSON, which is parsed and priced by size.
presentBoolean!Whether the active published version declares a decoder. True also when this build cannot run it: such an uplink must still reach the resolver, which records the failure.
profileVersionTokenString!The profile version the answer is for, as "{profile}@{version}"; empty when there is no decoder.

IntegrationDeviceResolution​

object

The answer to resolveIntegrationDevice.

FieldTypeDescription
deviceTokenStringToken of the device the alias names. Set only when the outcome is RESOLVED.
deviceTypeTokenStringToken of that device's type. Set only when the outcome is RESOLVED.
outcomeIntegrationDeviceOutcome!What happened.
overflowBoolean!True when the outcome is UNREGISTERED and the sighting was not stored because the integration already records 1000 distinct unregistered devices.

IntegrationSearchResults​

object

A page of integrations.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the whole result.
results[Integration!]!The integrations on this page.

IntegrationSecretResult​

object

An integration together with the bearer token the server just generated for it. The token is in the response to the write that issued it and nowhere else: the platform stores only a digest, so it cannot be read again. Rotate it if it is lost.

FieldTypeDescription
integrationIntegration!The integration the token belongs to.
issuedTokenString!43 characters, 256 bits. Show it to the operator once; the sender presents it as Authorization: Bearer.

MaintenanceWindow​

object

A recurring weekly schedule, in an IANA time zone, during which disruptive commands may start. Assign it to a device type; commands whose definition has impact DISRUPTIVE or DESTRUCTIVE then wait for it to open.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
createdAtStringWhen the window was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted windows are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
idID!Server-assigned numeric identifier, as a string. Address a window by its token instead where you can.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
slotsString!The weekly openings as a JSON array of objects with day (MONDAY to SUNDAY), start (a 24-hour HH:MM wall-clock time in the zone) and durationMinutes (1 to 10080, elapsed time). A slot may run past midnight and past the end of the week.
timezoneString!The IANA time zone the slots are read in, for example Europe/Berlin.
tokenString!Identifier of the window, unique within the tenant.
updatedAtStringWhen the window was last written, as an RFC 3339 timestamp.

MaintenanceWindowOpening​

object

When an operation under a maintenance window may start.

FieldTypeDescription
closesString!When the opening dispatchAfter belongs to ends, as an RFC 3339 timestamp.
dispatchAfterString!The earliest instant an operation may start, as an RFC 3339 timestamp: the instant asked about when the window is open, otherwise the next opening.
foundBoolean!False when no window has the token (it was deleted or never existed); the other fields are then meaningless.
openNowBoolean!True when the window is open at the instant asked about.

MaintenanceWindowSearchResults​

object

One page of maintenance windows matching a search.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[MaintenanceWindow!]!The windows on this page.

MetricDefinition​

object

A measurement the devices of a profile report: its key, numeric type, unit and allowed values. Inbound measurements whose key matches are validated against it; a measurement whose key is not declared is not validated.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
calculatedBoolean!True when the metric is calculated from its formula rather than reported by devices. Fixed when the metric is created.
createdAtStringWhen the metric definition was created, as an RFC 3339 timestamp.
dataTypeString!The value type: DOUBLE, INT, BOOLEAN or STRING. A BOOLEAN value is stored as 0 or 1, and a STRING value as text.
deletedAtStringAlways null: deleted metric definitions are not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
descriptorStringOptional semantic tag for the metric, such as a Web of Things type. Not interpreted on ingest; a published version's thingModel carries it as the property's @type.
deviceProfileDeviceProfile!The profile this metric is declared on.
enumStringThe allowed values as a JSON array of strings, or null when any value is allowed. A measurement must equal one of them exactly. A value that is not a non-empty array of strings restricts nothing.
expressionStringThe formula a calculated metric is computed from, written over the profile's measured metrics (for example voltage * current / 1000), and optionally over numbers a device carries in its metadata, as device.name (for example voltage * device.calibration). Null for a measured metric, which devices report.
idID!Server-assigned numeric identifier, as a string. Address a metric definition by its token instead where you can.
maxValueFloatLargest value accepted for a DOUBLE or INT metric, or null for no upper bound. A measurement above it is rejected.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
metricKeyString!The key a measurement uses to report this metric, unique within the profile and at most 128 characters.
minValueFloatSmallest value accepted for a DOUBLE or INT metric, or null for no lower bound. A measurement below it is rejected.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
semanticPointClassSemanticTermThe Brick point class this metric's series is (a class that is a brick:Point), or null when unbound.
semanticPropertySemanticTermThe quantity or property this metric observes, as a term of an enabled vocabulary, or null when unbound. Independent of descriptor.
tokenString!Identifier of the metric definition, unique within the tenant.
unitStringUnit of measure, such as a UCUM code (Cel, kW). It is carried with each measurement of this metric; values are not converted.
updatedAtStringWhen the metric definition was last written, as an RFC 3339 timestamp.

MetricDefinitionSearchResults​

object

One page of metric definitions matching a search.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[MetricDefinition!]!The metric definitions on this page.

MetricFormulaTest​

object

What a calculated-metric formula gives for a sample. A formula that does not compile has compileError and no value; one that compiles has exactly one of value or skippedReason.

FieldTypeDescription
chain[String!]!The calculated metrics the formula depends on, directly or through others, in the order they are evaluated, each computed from the sample through its own formula. Empty for a formula over measured metrics only.
compileErrorStringWhy the formula was refused, or null when it compiles.
constants[String!]!The device constants the formula reads as device.name, sorted. Each comes from a device's metadata when a reading is resolved; empty when the formula reads none.
estimatedCostIntThe formula's estimated worst-case cost; a formula above 100 is refused.
inputs[String!]!The metrics the formula reads directly: measured metrics and, since a formula may read another calculated metric, calculated ones.
measuredInputs[String!]!Every measured metric the evaluation reads: the formula's own and those read through the calculated metrics in the chain. These are the values a sample supplies; equal to inputs when the chain is empty.
skippedReasonStringWhy the formula produces no value for the sample: missing_input, invalid_input, non_finite, div_zero, overflow, range, unstorable (a magnitude of 1e12 or more, which measurements cannot be stored with) or eval_error. No value is ever substituted.
valueStringThe value the formula produces for the sample, formatted as it would be stored.
warnings[String!]!Advisory findings that do not stop a publish, such as a sample value no formula can read, or a result range wider than measurements can be stored with.

PayloadDecoder​

object

A payload decoder: the rules that turn a binary frame, a generic webhook's JSON or a network server's decoded object into measurements.

FieldTypeDescription
documentString!The whole decoder document as JSON text, exactly as saved.
envVersionInt!The version of the function library the decoder was written against. It never changes meaning.
estimatedCostInt!The decoder's worst-case static cost, in the units the function reference gives.
inputPayloadDecoderInput!Which input of an uplink the decoder reads.
kindPayloadDecoderKind!The engine the decoder runs on.
maxReadingsInt!The most readings one uplink can produce: the largest section's scalar rows plus its map rows' maxKeys. Ingest is charged this many readings per uplink.

PayloadDecoderError​

object

Why a test produced no readings.

FieldTypeDescription
messageString!What went wrong. It names the function and offset, never platform internals.
offsetIntThe byte offset a reader refused, or null.
pathString!The expression that failed, such as sections[1].outputs[2].expr, or empty when it is not one.
reasonString!The reason: compile_failed, env_unsupported, eval_error, cost_exceeded, invalid_output, no_section, no_outputs, missing_input, map_overflow, input_too_large, input_malformed, unsupported_encoding or ignored_message.

PayloadDecoderFunction​

object

One function of the decoder library.

FieldTypeDescription
descriptionString!What it does, including its limits.
nameString!The function's name, such as i16be.
signatureString!Its signature.

PayloadDecoderHealth​

object

How a profile's decoder has been doing over a span. Every uplink the decoder saw lands in exactly one of decoded, ignored, failed or suppressed. Counts are at least what happened: they are kept in memory and written about once a minute, so a crash loses up to a minute of them. The counts are Float, not Int: a busy decoder passes a 32-bit Int in a week. They are whole numbers, exact up to 2^53, so read them as integers.

FieldTypeDescription
chargeSkewFloat!Readings stored beyond what the route charged for, because a newer decoder produces more. A whole number, exact up to 2^53.
decodedFloat!Uplinks decoded to readings. A whole number, exact up to 2^53 (Float so it cannot overflow).
failedFloat!Failed uplinks that have a failed-events record (filter DECODE_FAILED). A whole number, exact up to 2^53.
ignoredFloat!Uplinks an ignore section matched: accepted, nothing stored. A whole number, exact up to 2^53.
lastErrorString!The text of the most recent failure, or empty when there was none.
lastFailureAtStringWhen the most recent failure happened, as an RFC 3339 time, or null when there was none.
sinceString!The start of the span, as an RFC 3339 time.
suppressedFloat!Failed uplinks that were NOT given a record because the device type's record budget was spent (a burst of 20, refilled 10 a minute, on each replica). They are counted here and nowhere else. A whole number, exact up to 2^53.
windowsInt!How many replica-minutes of tallies the sums cover.

PayloadDecoderReading​

object

One value a decoder produced, as it would be stored.

FieldTypeDescription
keyString!The measurement key.
valueString!The value, formatted by the target metric's type.

PayloadDecoderSample​

object

One failing uplink kept for replay. Its bytes are not listed: load it into the test panel with testPayloadDecoder sampleId.

FieldTypeDescription
createdAtString!When it was kept, as an RFC 3339 time.
deviceTokenString!Token of the device the uplink was for.
errorString!The failure text.
idID!Pass this as testPayloadDecoder sampleId.
profileVersionInt!The profile version whose decoder failed on it.
reasonString!The failure's sub-reason, such as missing_input.

PayloadDecoderSkip​

object

A value the decode did not store, and why.

FieldTypeDescription
keyString!The key that was skipped.
reasonString!Why: undeclared (no such metric), collision (a scalar row writes the key), reserved, or invalid.

PayloadDecoderTestResult​

object

What a decoder made of one input, through the code that runs at ingest. Nothing is stored.

FieldTypeDescription
costInt!The cost the decode spent.
errorPayloadDecoderErrorWhy the test failed, or null. A document that does not compile is reported here.
ignoredBoolean!True when an ignore section matched: the uplink would be accepted and store nothing.
okBoolean!True when the decoder compiled and the input decoded (an ignore section counts).
readings[PayloadDecoderReading!]!The readings that would be stored, with link metrics appended when the integration asks for them.
sectionStringThe name of the section that matched, or null.
skipped[PayloadDecoderSkip!]!Values the decode produced or the envelope carried that were not stored.
uplinksInt!How many uplinks a webhook body held; the first one was tested. Zero when the input was not a webhook body.
vectors[PayloadDecoderVectorResult!]!The saved vectors, each run through the decoder.

PayloadDecoderVectorResult​

object

One saved vector's outcome.

FieldTypeDescription
costInt!The cost the run spent.
errorStringWhy it failed, or null.
nameString!The vector's name.
okBoolean!Whether the decoder produced exactly the readings the vector expects.

ProvisioningProfile​

object

A device provisioning profile: the shared key and secret a fleet presents to register itself at the provisioning registration endpoint, the strategy that decides whether unknown devices may be created, and the device type stamped onto auto-created devices. The provision secret is generated by the server, returned once by createProvisioningProfile and rotateProvisioningProfileSecret, and never exposed on this type: only its digest is stored.

Implements Model, TokenReference, NamedEntity, MetadataEntity

FieldTypeDescription
createdAtStringWhen the profile was created, as an RFC 3339 timestamp.
credentialTypeString!The type of credential the profile issues to the devices it registers: ACCESS_TOKEN for a profile that authenticates by secret, X509_CERTIFICATE for a certificate profile.
deletedAtStringAlways null: a deleted profile is removed outright and is not returned.
descriptionStringFree-text description, up to 1024 characters. Null when none is set.
deviceTypeDeviceType!The device type of every device the profile registers, and the only type it will adopt.
enabledBoolean!Whether the profile accepts registrations. A disabled profile refuses them.
expiresAtStringWhen the profile stops accepting registrations, as an RFC 3339 timestamp. Null means it never expires.
idID!Server-assigned numeric identifier, as a string. Address a profile by its token instead where you can.
maxDevicesIntThe most devices the profile may register, or null for no cap. Devices holding a credential the profile issued count, revoked ones included, until their provisioning is reset or they are deleted.
metadataStringCaller-defined metadata as a JSON document, or null when none is set.
nameStringHuman-readable name, up to 128 characters. Null when none is set.
provisionKeyString!The key a fleet presents, with the provision secret, to register itself. Unique within the tenant.
provisionedDeviceCountInt!How many devices hold a credential the profile issued, counted against maxDevices.
secretIssuedBoolean!False for a profile whose secret was chosen by an operator (every profile created before the server generated secrets). The registration endpoint refuses such a profile with PROVISIONING_FAILED until rotateProvisioningProfileSecret issues it a secret. Always false for a certificate profile, which has no secret.
strategyString!Whether unknown devices may be created. ALLOW_NEW registers a device that does not exist yet and adopts an earmarked one; CHECK_PRE_PROVISIONED registers only earmarked devices that already exist. Neither adopts a device that was not earmarked for the profile.
tokenString!Identifier of the profile, unique within the tenant. It cannot be changed after creation.
trustAnchorDeviceTrustAnchorThe trust anchor a certificate profile authenticates its devices against, or null for a profile that authenticates by secret. A certificate profile has no provision secret.
updatedAtStringWhen the profile was last written, as an RFC 3339 timestamp.

ProvisioningProfileSearchResults​

object

One page of provisioning profiles.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the full result set.
results[ProvisioningProfile!]!The profiles on this page.

ProvisioningProfileSecretResult​

object

A provisioning profile together with the provision secret the server just generated for it. The secret is in the response to the write that issued it and nowhere else: the platform stores only a digest, so it cannot be read again. Rotate it if it is lost.

FieldTypeDescription
issuedSecretString43 characters, 256 bits. Show it to the operator once; devices present it, with the profile's provisionKey, to the registration endpoint. Null for a certificate profile, which has no secret.
profileProvisioningProfile!The profile the secret belongs to.

PublishedCommand​

object

One command a device accepts, as frozen in its profile's active published version. To edit commands, use the profile's command definitions and publish the profile.

FieldTypeDescription
commandKeyString!The key used to send this command.
descriptionStringFree-text description, or null when none was set.
encoderStringOptional declarative LoRaWAN payload encoder JSON. Null keeps the raw payload contract.
impactString!NORMAL, DISRUPTIVE or DESTRUCTIVE. The last two wait for the device type's maintenance window.
nameStringHuman-readable name, or null when none was set.
parameterSchemaStringThe command's parameters as a JSON array of parameter descriptors, or null when it takes no structured arguments.

PublishedMetric​

object

A metric in a device's published profile version, as inbound measurements are checked against it.

FieldTypeDescription
allowedValues[String!]The only values accepted, or null when any value of the type is accepted.
calculatedBoolean!True when the platform computes this metric from a formula over the device's other readings, so a device never reports it. A dashboard offers it like any other metric.
dataTypeString!DOUBLE, INT, BOOLEAN or STRING; a measurement's value must parse as this type (any text is a STRING).
maxValueFloatThe largest value accepted, or null when there is no upper bound.
metricKeyString!The key a measurement uses to report this metric.
minValueFloatThe smallest value accepted, or null when there is no lower bound.
unitStringThe unit, or null when none is declared.

PublishedProfileRule​

object

One enabled detection rule of a published profile version, as the detection engine receives it.

FieldTypeDescription
definitionString!The rule definition JSON document.
entityGroupTokenString!Token of the published entity group the rule is scoped to; an empty string for a rule that covers the whole profile.
entityGroupVersionInt!Version of that entity group; 0 for a rule that covers the whole profile.
tokenString!The rule's token, unique within the profile.

SearchResultsPagination​

object

Where a page of search results sits in the full result set. Positions are 1-based and inclusive.

FieldTypeDescription
pageEndIntPosition of the last result on this page within the full result set (1-based, inclusive). Lower than pageStart when the page is past the end of the results.
pageStartIntPosition of the first result on this page within the full result set (1-based).
totalRecordsIntNumber of records matching the criteria across all pages.

SelectorPreview​

object

The result of evaluating a candidate dynamic-group selector without saving it. A selector that fails the publish checks (not expressible as a query, over the cost budget, or a parse or type error) returns valid false with the error and no members, so an authoring form can show the problem inline as the user types instead of treating it as a failure.

FieldTypeDescription
errorStringWhy the selector was refused, in terms fit to show the author. Null when valid.
membersEntityGroupMemberSearchResultsOne page of the entities the selector matches now. Null when the selector is not valid.
validBoolean!Whether the selector passed the same checks a saved dynamic group must pass.

SemanticContext​

object

A tenant's semantic configuration.

FieldTypeDescription
customPrefixes[CustomPrefix!]The custom prefixes the tenant declared for its own terms, sorted by prefix. Null only when the stored record could not be read, with an error saying why.
enabledPacks[SemanticPack!]The vocabulary packs the tenant has enabled, sorted by pack id. Null only when the stored record could not be read, with an error saying why.
packVersions[SemanticPackVersion!]The version of each enabled pack as this build shipped it when the context was last set, sorted by pack. Null only when the stored record could not be read, with an error saying why.
updatedAtStringWhen the context was last set, as an RFC 3339 timestamp; null when it never was.

SemanticPackVersion​

object

The version of one vocabulary pack.

FieldTypeDescription
packSemanticPack!The pack.
versionString!The pack's version, as this build shipped it (for example the upstream release it was generated from).

SemanticTerm​

object

A term of a vocabulary the tenant has enabled, as it is stored and as it is displayed.

FieldTypeDescription
curieString!A display form, prefix:local, using the vocabulary's prefix or the tenant's custom prefix. It is the IRI itself when no prefix explains it.
iriString!The expanded IRI. This is what is stored; it does not change when a prefix is remapped.

SetAutomationReviewPolicyResult​

object

(Preview: may change in a minor release.) Whether the policy was applied immediately and its resulting view.

FieldTypeDescription
appliedBoolean!(Preview: may change in a minor release.) True when applied immediately; false when approval or a delay is pending.
policyAutomationReviewPolicy(Preview: may change in a minor release.) The resulting policy.

UnregisteredIntegrationDevice​

object

A device a sender named that no device of the tenant carries an alias for, as an integration saw it. Create a device of a type in the integration's scope with this alias to start resolving it; the sighting then disappears. Values some device already holds are never listed, and clearUnregisteredIntegrationDevices empties the list.

FieldTypeDescription
countInt!How many times it has been seen.
firstSeenString!When it was first seen, as an RFC 3339 timestamp.
idID!Server-assigned numeric identifier, as a string.
integrationString!Token of the integration that saw it.
lastSeenString!When it was last seen, as an RFC 3339 timestamp.
schemeString!The alias scheme the sender's identifier is in.
valueString!The sender's identifier in its stored spelling.

UnregisteredIntegrationDeviceSearchResults​

object

A page of unregistered devices.

FieldTypeDescription
paginationSearchResultsPagination!Where this page sits in the whole result.
results[UnregisteredIntegrationDevice!]!The unregistered devices on this page.

X509Certificate​

object

The pinned device certificate of an X509_CERTIFICATE credential, read back from what is stored.

FieldTypeDescription
fingerprintSha256String!SHA-256 of the certificate, hex. The credential's id.
notAfterString!When the certificate itself expires. The credential's expiresAt is the earliest expiry over its whole chain.
serialHexString!The certificate's serial number, hex.
subjectCnString!The certificate's subject common name: the device's external id when it registers itself.
trustAnchorDeviceTrustAnchorThe trust anchor the certificate's chain must reach at every connect.

Interfaces​

BrandedEntity · Entity · MetadataEntity · Model · NamedEntity · TokenReference

BrandedEntity​

interface

Presentation hints a user interface can use when showing the record. The server stores them as text and does not interpret them.

FieldTypeDescription
backgroundColorStringBackground colour to display the record with, such as a CSS colour. Not validated.
borderColorStringBorder colour to display the record with, such as a CSS colour. Not validated.
foregroundColorStringForeground (text) colour to display the record with, such as a CSS colour. Not validated.
iconStringName of an icon representing the record. Not checked against any icon set.
imageUrlStringURL of an image representing the record.

Entity​

interface

Interface implemented by every entity object type: anything that can be addressed by an entity type and a token.

FieldTypeDescription
idID!Server-assigned numeric identifier, as a string.
tokenString!Identifier of the entity, unique within its type and tenant.

MetadataEntity​

interface

A record that carries caller-defined metadata.

FieldTypeDescription
metadataStringCaller-defined metadata as a JSON document, or null when none is set.

Model​

interface

Fields every stored record carries: a server-assigned id and its timestamps.

FieldTypeDescription
createdAtStringWhen the record was created, as an RFC 3339 timestamp.
deletedAtStringAlways null: deleted records are not returned by this API.
idID!Server-assigned numeric identifier, as a string. Records are normally addressed by token; the ById lookups take this value.
updatedAtStringWhen the record was last written, as an RFC 3339 timestamp.

NamedEntity​

interface

A record with a human-readable name and description.

FieldTypeDescription
descriptionStringFree-text description. Null when none is set.
nameStringHuman-readable name. Null when none is set.

TokenReference​

interface

A record addressed by a token, an identifier unique within the tenant among records of its kind.

FieldTypeDescription
tokenString!Identifier of the record, unique within the tenant among records of its kind. Letters, digits, hyphens and underscores, starting with a letter or digit; at most 128 characters.

Input types​

AgentAlarmProposalInput · AgentProposalSearchCriteria · AlarmAnchor · AlarmCountCriteria · AlarmDispositionSearchCriteria · AlarmSearchCriteria · AlarmSuppressionTargetInput · AlarmSuppressionWindowCreateRequest · AlarmSuppressionWindowSearchCriteria · AlarmSuppressionWindowUpdateRequest · AnchorDeviceSearchCriteria · AreaCreateRequest · AreaSearchCriteria · AreaTypeCreateRequest · AreaTypeSearchCriteria · AreaTypeUpdateRequest · AreaUpdateRequest · AssetCreateRequest · AssetSearchCriteria · AssetTypeCreateRequest · AssetTypeSearchCriteria · AssetTypeUpdateRequest · AssetUpdateRequest · AuditEventSearchCriteria · AutomationReviewExpectationInputValue · AutomationReviewPolicyInput · AutomationReviewSearchCriteria · AutomationReviewWindowInput · BulkChangeAmbiguityResolution · BulkChangeConfigSetInput · BulkChangeCreateRequest · BulkChangeCreateSafety · BulkChangeLineSearchCriteria · BulkChangeReversalRequest · BulkChangeSafetyInput · BulkChangeSearchCriteria · CommandDefinitionCreateRequest · CommandDefinitionSearchCriteria · CommandDefinitionUpdateRequest · ConfigurationKeyInput · CustomPrefixInput · CustomerCreateRequest · CustomerDeviceSearchCriteria · CustomerSearchCriteria · CustomerTypeCreateRequest · CustomerTypeSearchCriteria · CustomerTypeUpdateRequest · CustomerUpdateRequest · DetectionRuleCreateRequest · DetectionRuleSearchCriteria · DetectionRuleUpdateRequest · DeviceAliasInput · DeviceBulkCreateRequest · DeviceClaimInitiateRequest · DeviceClaimRequest · DeviceCreateRequest · DeviceCredentialCreateRequest · DeviceCredentialSearchCriteria · DeviceCredentialUpdateRequest · DeviceImportRow · DeviceLocationDeclarationInput · DeviceProfileCreateRequest · DeviceProfileSearchCriteria · DeviceProfileUpdateRequest · DeviceReplaceRequest · DeviceReplacementSearchCriteria · DeviceRevokedCertificateSearchCriteria · DeviceSearchCriteria · DeviceTrustAnchorCreateRequest · DeviceTrustAnchorSearchCriteria · DeviceTrustAnchorUpdateRequest · DeviceTypeCreateRequest · DeviceTypeSearchCriteria · DeviceTypeUpdateRequest · DeviceUpdateRequest · EntityAttributeSearchCriteria · EntityAttributeSetRequest · EntityGroupCreateRequest · EntityGroupSearchCriteria · EntityGroupUpdateRequest · EntityRefInput · EntityRelationshipCreateRequest · EntityRelationshipSearchCriteria · EntityRelationshipTypeCreateRequest · EntityRelationshipTypeSearchCriteria · EntityRelationshipTypeUpdateRequest · FacetKeySearchCriteria · FacetKeySetRequest · FacetValueImportRow · GeoFenceCreateRequest · GeoFenceSearchCriteria · GeoFenceUpdateRequest · HeaderInput · InstalledPositionInput · IntegrationCreateRequest · IntegrationSearchCriteria · IntegrationUpdateRequest · MaintenanceWindowCreateRequest · MaintenanceWindowSearchCriteria · MaintenanceWindowUpdateRequest · MetricDefinitionCreateRequest · MetricDefinitionSearchCriteria · MetricDefinitionUpdateRequest · MetricValueInput · PaginationInput · PayloadDecoderTestInput · ProvisioningProfileCreateRequest · ProvisioningProfileSearchCriteria · ProvisioningProfileUpdateRequest · QueryParamInput · RunAutomationReviewInput · SemanticContextRequest · UnregisteredIntegrationDeviceSearchCriteria

AgentAlarmProposalInput​

input

(Preview: may change in a minor release.) An AI agent's request to acknowledge or clear alarms.

Input fieldTypeDescription
actionAgentAlarmAction!(Preview: may change in a minor release.) What to do to the alarms.
alarmTokens[String!]!(Preview: may change in a minor release.) The alarms, by token: 1 to 100. Duplicates count once.
dryRunBoolean(Preview: may change in a minor release.) When true, decide and check the request but store nothing.
rationaleString(Preview: may change in a minor release.) Why the agent asks, at most 2048 bytes. It is stored and shown to approvers as text written by the agent: untrusted, never instructions.
requestIdString!(Preview: may change in a minor release.) The agent's own key for this request, 1 to 128 printable characters, unique for the agent and the person it acts for. Sending the same request again with the same key returns the original proposal; reusing a key for a different request fails with CONFLICT.

AgentProposalSearchCriteria​

input

(Preview: may change in a minor release.) Filters for listing agent proposals.

Input fieldTypeDescription
kindAgentProposalKind(Preview: may change in a minor release.) Only proposals of this kind.
pageNumberInt!(Preview: may change in a minor release.) The page to return, starting at 1.
pageSizeInt!(Preview: may change in a minor release.) How many proposals a page holds.
stateAgentProposalState(Preview: may change in a minor release.) Only proposals in this state.

AlarmAnchor​

input

An anchor to filter alarms by: the alarms of one customer, area or asset, as stamped when each alarm cycle began. An alarm stays under the area its device was in when the alarm was raised, even after the device moves; a device sold or moved raises its NEXT alarm under the new anchors. For a member whose access is limited to some customers the answer is also limited to the alarms of that member's own devices, so a shared area counts only the member's own. A customer outside that member's access is refused (FORBIDDEN); an area or asset none of its devices raised in answers nothing.

Input fieldTypeDescription
tokenString!Token of the entity, unique within the tenant.
typeString!Entity class: customer, area or asset. Any other value is an error.

AlarmCountCriteria​

input

Criteria for counting alarms by device type or by severity. The facets are those of AlarmSearchCriteria, without paging and without deviceType (the per-type count's grouping; the per-severity count takes it as an argument of its own), and they AND together.

Input fieldTypeDescription
acknowledgedBooleanOnly acknowledged (true) or unacknowledged (false) alarms.
alarmKeyStringOnly alarms with this alarm key.
anchorAlarmAnchorOnly alarms stamped with this anchor (see AlarmAnchor).
originatorTokenStringOnly alarms of this originator, by its token. An unknown token counts nothing.
originatorTypeStringEntity type of the originator, e.g. "device". Required when originatorToken is set.
severityStringOnly alarms at this severity.
stateStringOnly alarms in this state: ACTIVE or CLEARED.

AlarmDispositionSearchCriteria​

input

Criteria for listing alarm disposition labels. Every facet is optional and they AND together.

Input fieldTypeDescription
alarmTokenStringOnly the labelled cycles of this alarm, by its token. An unknown token finds nothing.
endTimeStringOnly cycles raised at or before this instant (inclusive), as an RFC 3339 timestamp.
labelAlarmDispositionLabelOnly cycles with this label. A value that is not an AlarmDispositionLabel is refused when the request is validated, so a misspelt filter never reads as an empty answer.
pageNumberInt!The page to return, starting at 1.
pageSizeInt!How many labels a page holds.
startTimeStringOnly cycles raised at or after this instant (inclusive), as an RFC 3339 timestamp.

AlarmSearchCriteria​

input

Criteria for searching alarms. Every facet is optional and they AND together. originatorType and originatorToken restrict to one entity.

Input fieldTypeDescription
acknowledgedBooleanTrue selects acknowledged alarms and false unacknowledged ones. Omit for either.
alarmKeyStringOnly alarms with this alarm key.
anchorAlarmAnchorOnly alarms stamped with this anchor (see AlarmAnchor).
deviceTypeStringOnly alarms raised on a device of this type, by the type's token. An unknown token finds nothing. A member whose access is limited to some customers matches only the devices its scope owns, so an alarm it can see on a device it no longer owns is under no type.
endTimeStringOnly alarms raised at or before this instant (inclusive), as an RFC 3339 timestamp. With startTime, this keeps the alarms whose span overlaps the range. An alarm row holds its latest raise only, so an earlier raise of the same alarm is not found by any range. Omit for no upper bound. A value that is not RFC 3339 is an error.
originatorTokenStringOnly alarms of this originator, by its token. An unknown token finds nothing.
originatorTypeStringEntity type of the originator, for example device. Required when originatorToken is set.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.
raisedDuringSuppressionBooleanTrue selects current cycles raised under suppression; false selects cycles without a stamp. Omit for either.
severityStringOnly alarms at this severity: CRITICAL, MAJOR, MINOR, WARNING or INDETERMINATE.
startTimeStringOnly alarms active at some point at or after this instant (inclusive), as an RFC 3339 timestamp: still active, or cleared at or after it. An alarm raised earlier that was still active then is included. Omit for no lower bound. A value that is not RFC 3339 is an error.
stateStringOnly alarms in this state: ACTIVE or CLEARED.

AlarmSuppressionTargetInput​

input

One population of devices to cover.

Input fieldTypeDescription
tokenStringTarget token; omit for TENANT.
typeString!DEVICE, DEVICE_TYPE, ENTITY_GROUP, AREA, ASSET, CUSTOMER or TENANT.

AlarmSuppressionWindowCreateRequest​

input

Declare a paging hold. Creator identity and early-end fields are server-owned.

Input fieldTypeDescription
alarmKeys[String!]Up to twenty alarm keys; empty or omitted matches every key.
bypassSeverityStringSeverity at or above which alarms bypass this window.
descriptionStringFree-text description.
endTimeStringExclusive ONE_SHOT end, as an RFC 3339 timestamp; at most thirty-one days after start.
kindAlarmSuppressionKind!Single interval or recurring schedule.
metadataStringCaller-defined metadata as JSON.
nameStringHuman-readable name.
reasonString!Required explanation for holding pages.
slotsStringRECURRING weekly slots as a JSON array of day, start and durationMinutes.
startTimeStringInclusive ONE_SHOT start, as an RFC 3339 timestamp.
targets[AlarmSuppressionTargetInput!]!One to twenty target populations.
timezoneStringIANA time zone for RECURRING openings.
tokenString!Stable identifier for the new window.
validFromStringInclusive recurrence bound, as an RFC 3339 timestamp.
validUntilStringExclusive recurrence bound, as an RFC 3339 timestamp.

AlarmSuppressionWindowSearchCriteria​

input

Search visible whole windows before computing pagination totals.

Input fieldTypeDescription
pageNumberInt!One-based page number.
pageSizeInt!Maximum records per page.
statusStringSCHEDULED, ACTIVE or ENDED; omit for every status.
targetTokenStringMatch any target naming this token.

AlarmSuppressionWindowUpdateRequest​

input

Partial edit: omit to keep, null to clear nullable fields, value to replace. Required fields refuse null.

Input fieldTypeDescription
alarmKeys[String!]Replace all keys; null or an empty list matches every key.
bypassSeverityStringBypass severity; null disables bypass.
descriptionStringFree-text description; null clears.
endTimeStringONE_SHOT end as RFC 3339; null clears only when the merged kind permits it.
kindAlarmSuppressionKindSchedule kind; null is refused. Change schedule fields together when switching kinds.
metadataStringMetadata JSON; null clears.
nameStringHuman-readable name; null clears.
reasonStringRequired explanation; null is refused.
slotsStringRECURRING slots JSON; null clears only when the merged kind permits it.
startTimeStringONE_SHOT start as RFC 3339; null clears only when the merged kind permits it.
targets[AlarmSuppressionTargetInput!]Replace all targets; null and empty lists are refused.
timezoneStringRECURRING IANA time zone; null clears only when the merged kind permits it.
validFromStringInclusive recurrence bound as RFC 3339; null clears.
validUntilStringExclusive recurrence bound as RFC 3339; null clears.

AnchorDeviceSearchCriteria​

input

Criteria for the devices on one anchor: a customer, an area or an asset.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.
relationshipTypeStringToken of the relationship type linking each device to the anchor, such as "assigned". Omit it for a device linked by any type. Refused for a member limited to part of the tenant.
targetString!Token of the anchor.
targetTypeString!The anchor's kind: "customer", "area" or "asset".

AreaCreateRequest​

input

Data required to create an area.

Input fieldTypeDescription
areaTypeTokenString!Token of the area type to create it under. An unknown token is refused.
boundaryFenceTokenStringThe token of the geofence that bounds the area. It must name an existing fence.
descriptionStringFree-text description, up to 1024 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
tokenString!Identifier for the new area, unique within the tenant. Cannot be changed later.

AreaSearchCriteria​

input

Criteria for listing areas.

Input fieldTypeDescription
areaTypeTokenStringOnly areas of the area type with this token. Omit for every area.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

AreaTypeCreateRequest​

input

Data required to create an area type.

Input fieldTypeDescription
backgroundColorStringBackground colour to display the area type with, up to 32 characters. Not validated.
borderColorStringBorder colour to display the area type with, up to 32 characters. Not validated.
descriptionStringFree-text description, up to 1024 characters.
foregroundColorStringForeground (text) colour to display the area type with, up to 32 characters. Not validated.
iconStringName of an icon representing the area type, up to 128 characters. Not checked against any icon set.
imageUrlStringURL of an image representing the area type, up to 512 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
semanticTypes[String!]The classes an entity of this type is, as CURIEs (for example sdm-streetlighting:Streetlight) or full IRIs inside an enabled vocabulary. Each must be a CLASS of a pack the tenant has enabled, or a term under a custom prefix it declared; at most 8. A term outside the enabled vocabularies, of the wrong kind, deprecated, or malformed fails the request with INVALID_ARGUMENT naming it. Stored as expanded IRIs. Omit for none.
tokenString!Identifier for the new area type, unique within the tenant. Cannot be changed later.

AreaTypeSearchCriteria​

input

Criteria for listing area types.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

AreaTypeUpdateRequest​

input

A partial update of an area type. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.

Input fieldTypeDescription
backgroundColorStringBackground colour; null clears it.
borderColorStringBorder colour; null clears it.
descriptionStringFree-text description; null clears it.
foregroundColorStringForeground colour; null clears it.
iconStringIcon name; null clears it.
imageUrlStringImage URL; null clears it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.
semanticTypes[String!]New classes, replacing the stored ones: null or an empty list clears them. Omit to leave them alone. Validated as on create; only a request that names this field is validated.

AreaUpdateRequest​

input

A partial update of an area. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.

Input fieldTypeDescription
areaTypeTokenStringRe-points the area at a different area type. Omit to keep the current one. Null is refused, because every area must reference a type, and so is an unknown token; a refusal writes nothing.
boundaryFenceTokenStringLinks the area to the geofence that bounds it: omit to keep the link, send null to remove it, send a token to set it. The token must name an existing fence.
descriptionStringFree-text description; null clears it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.

AssetCreateRequest​

input

Data required to create an asset.

Input fieldTypeDescription
assetTypeTokenString!Token of the asset type to create it under. An unknown token is refused.
descriptionStringFree-text description, up to 1024 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
propertiesStringThe asset's property document, validated against the asset type's active published contract before anything is written. Refused when the type has no published contract, when a key is not declared, when a value does not fit its declared type, bounds or allowed values, or when a required property is missing; a refusal is total, so no asset is created.
tokenString!Identifier for the new asset, unique within the tenant. Cannot be changed later.

AssetSearchCriteria​

input

Criteria for listing assets.

Input fieldTypeDescription
assetTypeTokenStringOnly assets of the asset type with this token. Omit for every asset.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

AssetTypeCreateRequest​

input

Data required to create an asset type.

Input fieldTypeDescription
backgroundColorStringBackground colour to display the asset type with, up to 32 characters. Not validated.
borderColorStringBorder colour to display the asset type with, up to 32 characters. Not validated.
descriptionStringFree-text description, up to 1024 characters.
foregroundColorStringForeground (text) colour to display the asset type with, up to 32 characters. Not validated.
iconStringName of an icon representing the asset type, up to 128 characters. Not checked against any icon set.
imageUrlStringURL of an image representing the asset type, up to 512 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
propertySchemaStringThe draft property contract, as on AssetType.propertySchema. Refused if it is not a JSON array of descriptors, if it carries a key no descriptor declares (so a mistyped key is refused rather than dropped), or if it declares a contract nothing could satisfy, such as a duplicate name, an unknown data type or a default outside its own enum.
semanticTypes[String!]The classes an entity of this type is, as CURIEs (for example sdm-streetlighting:Streetlight) or full IRIs inside an enabled vocabulary. Each must be a CLASS of a pack the tenant has enabled, or a term under a custom prefix it declared; at most 8. A term outside the enabled vocabularies, of the wrong kind, deprecated, or malformed fails the request with INVALID_ARGUMENT naming it. Stored as expanded IRIs. Omit for none.
tokenString!Identifier for the new asset type, unique within the tenant. Cannot be changed later.

AssetTypeSearchCriteria​

input

Criteria for listing asset types.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

AssetTypeUpdateRequest​

input

A partial update of an asset type. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.

Input fieldTypeDescription
backgroundColorStringBackground colour; null clears it.
borderColorStringBorder colour; null clears it.
descriptionStringFree-text description; null clears it.
foregroundColorStringForeground colour; null clears it.
iconStringIcon name; null clears it.
imageUrlStringImage URL; null clears it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.
propertySchemaStringReplaces the draft property contract wholesale; null withdraws it. Omit to keep the stored draft. Validated as on create, and a refusal writes nothing.
semanticTypes[String!]New classes, replacing the stored ones: null or an empty list clears them. Omit to leave them alone. Validated as on create; only a request that names this field is validated.

AssetUpdateRequest​

input

A partial update of an asset. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.

Input fieldTypeDescription
assetTypeTokenStringRe-points the asset at a different asset type. Omit to keep the current one. Null is refused, because every asset must reference a type, and so is an unknown token; a refusal writes nothing.
descriptionStringFree-text description; null clears it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.
propertiesStringReplaces the asset's property document wholesale; null clears it. Omit to keep what is stored. Omitting it does not skip the check: moving to another asset type re-validates the properties the asset already carries against that type's contract.

AuditEventSearchCriteria​

input

Criteria for querying the audit journal. Every filter is optional; a bounded startTime and endTime range is recommended.

Input fieldTypeDescription
actorStringOnly entries whose actor contains this text. The match ignores case. At most 256 bytes; longer input is refused with LIMIT_EXCEEDED.
categoryStringOnly entries of this category: mutation or auth.
endTimeStringOnly entries at or before this instant, as an RFC 3339 timestamp.
entityPkStringOnly entries that affected the row with this primary key.
operationStringOnly entries of this operation: create, update or delete.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.
startTimeStringOnly entries at or after this instant, as an RFC 3339 timestamp.
tableNameStringOnly entries that mutated this table.

AutomationReviewExpectationInputValue​

input

(Preview: may change in a minor release.) AutomationReviewExpectationInputValue parameters.

Input fieldTypeDescription
expectString!(Preview: may change in a minor release.) One rule-test expectation as JSON, using the event-processing expectation vocabulary.
nameString(Preview: may change in a minor release.) The expectation name.
windowAutomationReviewWindowRole!(Preview: may change in a minor release.) The window to which this expectation applies.

AutomationReviewPolicyInput​

input

(Preview: may change in a minor release.) Requested automation protection settings; omitted optional fields use their defaults.

Input fieldTypeDescription
allowSelfApprovalBoolean(Preview: may change in a minor release.) Whether creators and authors may approve; defaults to false.
approvalTtlSecondsInt(Preview: may change in a minor release.) Approval lifetime in seconds; defaults to 86400.
requiredBoolean!(Preview: may change in a minor release.) Whether publishing requires review.
requiredApprovalsInt(Preview: may change in a minor release.) Required approvals; defaults to 1.
stepUpMaxAgeSecondsInt(Preview: may change in a minor release.) Maximum second-factor age in seconds; defaults to 900.

AutomationReviewSearchCriteria​

input

(Preview: may change in a minor release.) Profile, lifecycle, draft matching and paging filters.

Input fieldTypeDescription
matchingCurrentDraftBoolean(Preview: may change in a minor release.) Only reviews whose draft digest matches, or does not match, the current draft.
pageNumberInt!(Preview: may change in a minor release.) The page to return, starting at 1.
pageSizeInt!(Preview: may change in a minor release.) The number of reviews per page.
profileTokenString!(Preview: may change in a minor release.) The profile whose draft is reviewed.
stateAutomationReviewState(Preview: may change in a minor release.) The current review lifecycle state.

AutomationReviewWindowInput​

input

(Preview: may change in a minor release.) AutomationReviewWindowInput parameters.

Input fieldTypeDescription
endString!(Preview: may change in a minor release.) RFC3339 timestamp; invalid timestamps are invalid arguments.
roleAutomationReviewWindowRole!(Preview: may change in a minor release.) Whether this is the incident or normal window.
startString!(Preview: may change in a minor release.) RFC3339 timestamp; invalid timestamps are invalid arguments.

BulkChangeAmbiguityResolution​

input

Preview. Resolve selected ambiguous lines with a fresh second factor and a note.

Input fieldTypeDescription
allAmbiguousBooleanPreview. Resolve every ambiguous line instead of selecting ordinals.
noteString!Preview. Reason for the verdict, from 1 to 1000 characters.
ordinals[Int!]Preview. Positions to resolve, starting at 1. Select this or allAmbiguous.
tokenString!Preview. Token of the bulk change.
verdictBulkChangeVerdict!Preview. The person's verdict.

BulkChangeConfigSetInput​

input

Preview. The change a config.set operation makes: one declared SHARED configuration key, set or unset.

Input fieldTypeDescription
keyString!Preview. The configuration key.
unsetBooleanPreview. Remove the key instead of setting it.
valueStringPreview. The value, as text. Omit when unsetting.
valueTypeStringPreview. STRING, LONG, DOUBLE, BOOLEAN or JSON. Omit when unsetting.

BulkChangeCreateRequest​

input

Preview. A request to plan or create a bulk change.

Input fieldTypeDescription
configSetBulkChangeConfigSetInputPreview. The change, for kind config.set.
deviceTokens[String!]!Preview. Tokens of the devices to change, at most 10000. A token that names no device in this tenant becomes a refused line.
kindString!Preview. The kind of operation. This release knows config.set.
nameString!Preview. Name shown to people.
safetyBulkChangeCreateSafetyPreview. The limits to run under.
tokenString!Preview. Identifier for the operation, unique within the tenant.

BulkChangeCreateSafety​

input

Preview. The limits an operation asks to run under.

Input fieldTypeDescription
ambiguityThresholdIntPreview. Ambiguous lines that pause the operation. Omit for no limit.
failureThresholdIntPreview. Failed lines that pause the operation. Omit for no limit.
maxPostsPerSecondIntPreview. The most lines applied per second. Default 10; at most 50.
settleDeadlineSecondsIntPreview. Seconds a device has to answer before its line becomes ambiguous. Default 86400.

BulkChangeLineSearchCriteria​

input

Preview. Criteria for listing one operation's lines.

Input fieldTypeDescription
codeStringPreview. Only lines with this code.
pageNumberInt!Preview. 1-based page number.
pageSizeInt!Preview. Rows per page.
postingStringPreview. Only lines in this posting state.
settlementStringPreview. Only lines with this settlement.

BulkChangeReversalRequest​

input

Preview. A request to reverse a DISPATCHED or ABORTED bulk change: a new bulk change that puts back, line by line, the value each device held before.

Input fieldTypeDescription
nameString!Preview. Name shown to people.
ordinals[Int!]Preview. Positions of the original's lines to reverse, starting at 1. Omit to reverse every applied line.
originalString!Preview. Token of the bulk change to reverse.
overrideChangedBooleanPreview. Apply every selected line even where the value changed after the original was applied. Needs a second factor verified within five minutes.
overrideOrdinals[Int!]Preview. Apply only these lines even where the value changed since. Needs a second factor verified within five minutes.
safetyBulkChangeCreateSafetyPreview. The limits to run under.
tokenString!Preview. Identifier for the reversal, unique within the tenant. Reversing again with the same token and the same request returns the first reversal.

BulkChangeSafetyInput​

input

Preview. A change to the limits an operation runs under when it is resumed. Anything looser than the approved contract is refused.

Input fieldTypeDescription
ambiguityThresholdIntPreview. Ambiguous lines that pause the operation. At most the approved limit.
clearAmbiguityThresholdBooleanPreview. Remove the ambiguity limit. Only where the contract has none.
clearFailureThresholdBooleanPreview. Remove the failure limit. Only where the contract has none.
failureThresholdIntPreview. Failed lines that pause the operation. At most the approved limit.
maxPostsPerSecondIntPreview. The most lines applied per second. At most the approved rate.

BulkChangeSearchCriteria​

input

Preview. Criteria for listing operations.

Input fieldTypeDescription
dispatchStringPreview. Only operations in this dispatch state.
evidenceStringPreview. Only operations in this evidence state.
kindStringPreview. Only operations of this kind.
pageNumberInt!Preview. 1-based page number.
pageSizeInt!Preview. Rows per page.

CommandDefinitionCreateRequest​

input

Fields for a new command definition.

Input fieldTypeDescription
commandKeyString!The key used to send the command. Letters, digits, hyphens and underscores, starting with a letter or digit; at most 128 characters. Dots may separate namespaced segments (for example sparkplug.write): each segment follows the same rule, and a leading, trailing or doubled dot is refused. A key the profile already declares is refused with CONFLICT.
descriptionStringFree-text description, up to 1024 characters.
deviceProfileTokenString!Token of the profile to declare the command on. An unknown token fails the request.
encoderStringOptional declarative LoRaWAN payload encoder JSON. Null keeps the raw payload contract.
impactStringHow disruptive the command is: NORMAL (the default), DISRUPTIVE or DESTRUCTIVE. DISRUPTIVE and DESTRUCTIVE commands wait for the device type's maintenance window. An unknown value fails the request.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
parameterSchemaStringThe command's parameters: a JSON array of descriptors, each with a name and optional description, kind (SCALAR, the default, or OBJECT with nested parameters), dataType (DOUBLE, INT, BOOLEAN or STRING), unit, required, default, minValue, maxValue and enum. Unknown keys and inconsistent constraints are refused. Omit it for a command without structured arguments.
tokenString!Identifier for the new command definition. A token already in use in the tenant is refused with CONFLICT.

CommandDefinitionSearchCriteria​

input

Criteria for searching command definitions. Results are newest first.

Input fieldTypeDescription
commandKeyStringReturn only definitions with exactly this command key.
deviceProfileStringReturn only definitions on the profile with this token. An unknown token matches nothing.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

CommandDefinitionUpdateRequest​

input

A partial update to a command definition. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it; the fields that cannot be cleared say so. The definition is named by the mutation's token argument, so there is no token here. Any refusal leaves the definition unchanged.

Input fieldTypeDescription
commandKeyStringNew command key, in the same format as on create. An explicit null or a blank value is refused, and a key already declared on the profile is refused with CONFLICT.
descriptionStringNew description, or null to clear it.
deviceProfileTokenStringToken of another profile to move the definition to. An explicit null or a blank value is refused, and an unknown token fails the whole update. The command key must be unique in the profile the definition ends up in.
encoderStringOptional declarative LoRaWAN payload encoder JSON. Null keeps the raw payload contract.
impactStringNew impact (NORMAL, DISRUPTIVE or DESTRUCTIVE). An explicit null or an unknown value is refused. The change reaches devices when the profile is published.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringNew name, or null to clear it.
parameterSchemaStringNew parameters (validated as on create), or null to make the command one without structured arguments.

ConfigurationKeyInput​

input

One key of a configuration declaration. The key must follow the attribute-key grammar (letters, digits, hyphens and underscores, starting with a letter or digit), be unique within the declaration, and carry a valid value type.

Input fieldTypeDescription
descriptionStringAn optional human-readable note.
keyString!The shared attribute key.
valueTypeString!How the key's value is typed: STRING, LONG, DOUBLE, BOOLEAN or JSON.

CustomPrefixInput​

input

One custom prefix declaration.

Input fieldTypeDescription
namespaceString!The namespace IRI the prefix expands to. It may not overlap a pack's or another prefix's namespace.
prefixString!The prefix, as it will be written before the colon in a CURIE. It may not be a pack's prefix.

CustomerCreateRequest​

input

Data required to create a customer.

Input fieldTypeDescription
customerTypeTokenString!Token of the customer type to create it under. An unknown token is refused.
descriptionStringFree-text description, up to 1024 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
tokenString!Identifier for the new customer, unique within the tenant. Cannot be changed later.

CustomerDeviceSearchCriteria​

input

Which customer's devices to return, and the page.

Input fieldTypeDescription
customerString!Token of the customer.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.
relationshipTypeString!Token of the relationship type linking each device to the customer, such as "assigned".

CustomerSearchCriteria​

input

Criteria for listing customers.

Input fieldTypeDescription
customerTypeTokenStringOnly customers of the customer type with this token. Omit for every customer.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

CustomerTypeCreateRequest​

input

Data required to create a customer type.

Input fieldTypeDescription
backgroundColorStringBackground colour to display the customer type with, up to 32 characters. Not validated.
borderColorStringBorder colour to display the customer type with, up to 32 characters. Not validated.
descriptionStringFree-text description, up to 1024 characters.
foregroundColorStringForeground (text) colour to display the customer type with, up to 32 characters. Not validated.
iconStringName of an icon representing the customer type, up to 128 characters. Not checked against any icon set.
imageUrlStringURL of an image representing the customer type, up to 512 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
semanticTypes[String!]The classes an entity of this type is, as CURIEs (for example sdm-streetlighting:Streetlight) or full IRIs inside an enabled vocabulary. Each must be a CLASS of a pack the tenant has enabled, or a term under a custom prefix it declared; at most 8. A term outside the enabled vocabularies, of the wrong kind, deprecated, or malformed fails the request with INVALID_ARGUMENT naming it. Stored as expanded IRIs. Omit for none.
tokenString!Identifier for the new customer type, unique within the tenant. Cannot be changed later.

CustomerTypeSearchCriteria​

input

Criteria for listing customer types.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

CustomerTypeUpdateRequest​

input

A partial update of a customer type. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.

Input fieldTypeDescription
backgroundColorStringBackground colour; null clears it.
borderColorStringBorder colour; null clears it.
descriptionStringFree-text description; null clears it.
foregroundColorStringForeground colour; null clears it.
iconStringIcon name; null clears it.
imageUrlStringImage URL; null clears it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.
semanticTypes[String!]New classes, replacing the stored ones: null or an empty list clears them. Omit to leave them alone. Validated as on create; only a request that names this field is validated.

CustomerUpdateRequest​

input

A partial update of a customer. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.

Input fieldTypeDescription
customerTypeTokenStringRe-points the customer at a different customer type. Omit to keep the current one. Null is refused, because every customer must reference a type, and so is an unknown token; a refusal writes nothing.
descriptionStringFree-text description; null clears it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.

DetectionRuleCreateRequest​

input

Data required to create a detection rule on a device profile. The definition is checked to be well- formed JSON on write; the detection engine does the authoritative validation when the profile is published.

Input fieldTypeDescription
authoredViaAuthoredViaDoor used for this save; omitted or null means API. Adds to the recorded set and never erases earlier doors, including DESCRIBE.
authoringGraphStringThe visual automation canvas document the rule was authored with. Omit for a rule authored as a form. When present it must be a JSON object; it is stored verbatim and not interpreted.
definitionString!The rule as a JSON document in the detection engine's rule language. Must be well-formed JSON.
descriptionStringFree-text description, up to 1024 characters.
deviceProfileTokenString!Token of the device profile to declare the rule on. An unknown token is refused.
enabledBoolean!Whether the rule is live. A disabled rule is kept but not run.
entityGroupTokenStringToken of a dynamic entity group to scope the rule to. Omit both scope fields for a rule that covers every device of the profile, or set both together. Checked on save: it must name a published dynamic group version.
entityGroupVersionIntPublished version of the entity group to scope the rule to. Set together with entityGroupToken.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
tokenString!Identifier for the new rule, unique within the tenant. Cannot be changed later.

DetectionRuleSearchCriteria​

input

Criteria for listing detection rules.

Input fieldTypeDescription
deviceProfileStringOnly rules declared on the device profile with this token. Omit for every rule.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

DetectionRuleUpdateRequest​

input

A partial update of a detection rule. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. The rule's token is not here because the mutation's token argument names the rule and an update cannot move it. The authoredVia field records this save's door instead: omitted or null means API, and previous doors are retained.

Input fieldTypeDescription
authoredViaAuthoredViaDoor used for this save; omitted or null means API. Adds to the recorded set and never erases earlier doors, including DESCRIBE.
authoringGraphStringThe visual canvas document. Null drops it, which is what a form edit of a canvas-authored rule needs since the graph is then stale; omitting it keeps it.
definitionStringThe rule JSON document. Required: null is refused, because a rule with no definition detects nothing.
descriptionStringFree-text description; null clears it.
deviceProfileTokenStringMoves the rule to this device profile. Null is refused, and an unknown token refuses the whole update.
enabledBooleanWhether the rule is live. Null is refused rather than read as false, which would silently park a live rule.
entityGroupTokenStringEntity group scope. The two scope fields are applied independently and then checked as a pair against what the rule ends up with, so naming one without the other is refused. Null on either removes the scope.
entityGroupVersionIntPublished version of the scoping entity group. See entityGroupToken for how the pair is applied.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.

DeviceAliasInput​

input

A name for a device in a sender's vocabulary. The value is checked against the scheme and stored in one canonical spelling, so the same DevEUI written in either case is one alias.

Input fieldTypeDescription
schemeString!lorawan.deveui, tts.device-id, or custom.<name> (lower-case letters, digits, hyphen and underscore, up to 63 characters).
valueString!lorawan.deveui: exactly 16 hexadecimal digits. tts.device-id: 1 to 36 letters, digits and hyphens. custom.<name>: 1 to 128 characters with no control characters, case kept.

DeviceBulkCreateRequest​

input

Creates many devices of one type from templates. Device n of the batch (n running from startIndex to startIndex + count - 1) is rendered by replacing {n} with n, or {n:0Wd} with n zero-padded to width W. Each template may be at most 256 characters, with a pad width of at most 128. The whole batch is created or none of it is.

Input fieldTypeDescription
countInt!Number of devices to create, from 1 to 1000.
deviceTypeTokenString!Token of the device type for every device. An unknown token fails the request.
externalIdTemplateStringTemplate for the external ids. Optional. {random} renders a fresh random value per device. When creating more than one device the template must contain {n}, {n:0Wd} or {random}, since external ids are unique within the tenant. A rendered value may be at most 256 characters.
metadataStringMetadata given to every device. Must be valid JSON; an empty string means none.
nameTemplateStringTemplate for the device names. Optional; {random} is not allowed. A rendered name may be at most 128 characters.
startIndexIntIndex of the first device. Defaults to 1; values below 1 are refused.
tokenTemplateString!Template for the device tokens. It must contain {n} or {n:0Wd} so each token is distinct, must not contain {random}, and every rendered token must be a valid token not already in use.

DeviceClaimInitiateRequest​

input

Data required to open, or reopen, a device claim. Reopening a claimed or canceled device, for example after resale, clears the earlier redemption record.

Input fieldTypeDescription
claimSecretString!The secret an eventual owner must present to redeem the claim. Refused when empty or whitespace- only; at most 256 bytes, taken exactly as sent. Stored only as a keyed digest and never returned.
deviceTokenString!Token of the device to open a claim on. An unknown token is refused.
expiresAtStringWhen the claim stops being redeemable, as an RFC 3339 timestamp. Omit for no expiry.

DeviceClaimRequest​

input

Data required to redeem a device claim: the device, the claim secret as proof of possession, the customer to assign the device to, and the relationship type of the resulting device-to-customer edge. Redeeming is one-time: a concurrent or repeated redemption of the same claim fails.

Input fieldTypeDescription
claimSecretString!The claim secret that proves possession. It must match the secret the claim was opened with.
customerTokenString!Token of the customer to assign the device to. An unknown token is refused.
deviceTokenString!Token of the device being claimed.
relationshipTypeStringThe relationship type of the edge the claim writes. Omit it to use the built-in tracked "assigned" type, which is what makes the device belong to the customer: only a tracked relationship counts as ownership, so a device claimed with an untracked type is not visible to members limited to that customer.

DeviceCreateRequest​

input

Fields for a new device.

Input fieldTypeDescription
aliases[DeviceAliasInput!]Names a sender other than the platform knows the device by, such as its LoRaWAN DevEUI. At most 8, one per scheme. A value another device in the tenant already holds under the scheme is refused with CONFLICT. Omitted or null creates the device with none.
descriptionStringFree-text description, up to 1024 characters.
deviceTypeTokenString!Token of the device's type. An unknown token fails the request.
enabledBooleanFalse to create the device already disabled. Omitted or null creates it enabled.
externalIdStringOptional business identifier, up to 256 characters. A value another device in the tenant already has is refused with CONFLICT.
gatewayTokenStringToken of the gateway device to create this device behind. The same rules as assignDeviceGateway apply, and a refusal fails the create. Omitted or null creates the device behind no gateway.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
provisioningProfileTokenStringToken of a provisioning profile to EARMARK the device for. Only that profile may later adopt this device when it registers itself; the profile must exist in the tenant and be of this device's type, otherwise the request is refused with INVALID_VALUE. Omitted or null earmarks nothing, and no profile will take the device over.
tokenString!Identifier for the new device. A token already in use in the tenant is refused with CONFLICT.

DeviceCredentialCreateRequest​

input

Data required to create a device credential.

Input fieldTypeDescription
certificatePemStringX509_CERTIFICATE only: the device certificate in PEM, optionally followed by the intermediates that link it to the trust anchor. The chain is verified when the credential is created, so one that could not authenticate is refused with INVALID_VALUE. Only the device certificate is stored. Requires trustAnchorToken. Refused for any other type.
credentialIdString!The MQTT username, or the access token for ACCESS_TOKEN (at most 256 bytes). The token is stored only as a keyed digest and is returned once, in this mutation's response.
credentialTypeString!The kind of credential: ACCESS_TOKEN, MQTT_BASIC or X509_CERTIFICATE. Any other value is refused.
credentialValueStringThe password for an MQTT_BASIC credential: at least 16 bytes, counted as sent, and at most 4096. A shorter one is refused with extensions.code INVALID_VALUE. Write-only; it is stored only as a keyed digest. A password set before the 16-byte minimum keeps working until it is next changed.
deviceTokenString!Token of the device the credential authenticates. An unknown token is refused.
enabledBoolean!Whether the credential can authenticate. A disabled credential is kept but refused at connect.
expiresAtStringWhen the credential stops authenticating, as an RFC 3339 timestamp. Omit for never.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
tokenString!Identifier for the new credential record, unique within the tenant.
trustAnchorTokenStringX509_CERTIFICATE only: the trust anchor the certificate's chain must reach, at creation and at every connect.

DeviceCredentialSearchCriteria​

input

Criteria for listing device credentials. Every facet is optional and they AND together.

Input fieldTypeDescription
credentialIdStringAn MQTT username, or for ACCESS_TOKEN either the access token or the fingerprint a read returns. The token is matched through its digest; it is never stored or compared as sent.
credentialTypeStringOnly credentials of this type: ACCESS_TOKEN, MQTT_BASIC or X509_CERTIFICATE.
deviceStringOnly credentials of the device with this token.
enabledBooleanTrue selects enabled credentials and false disabled ones. Omit for either.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

DeviceCredentialUpdateRequest​

input

A partial update of a device credential. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. The token is not here because the mutation's token argument names the credential and an update cannot move it.

Input fieldTypeDescription
credentialIdStringThe MQTT username, or the new access token for ACCESS_TOKEN. Setting it on an ACCESS_TOKEN credential rotates the token: the old one stops working at once and the new one is returned once, in this mutation's response. Required when this request changes the credential's type to or from ACCESS_TOKEN, and refused otherwise with extensions.code INVALID_VALUE.
credentialTypeStringThe kind of credential. Required: null is refused. Validated against the known types when sent.
credentialValueStringThe new password for an MQTT_BASIC credential: at least 16 bytes, counted as sent, and at most 4096. A shorter one is refused with extensions.code INVALID_VALUE. Required when this request changes the credential's type to MQTT_BASIC. Ignored for a type that has no password. Write-only; it is stored only as a keyed digest. A password set before the 16-byte minimum keeps working until it is next changed.
deviceTokenStringRe-points the credential at another device. Null is refused, and an unknown token refuses the whole update.
enabledBooleanWhether the credential can authenticate. Null is refused rather than read as false, which would silently disable the credential and take the device offline at its next reconnect.
expiresAtStringWhen the credential stops authenticating, as an RFC 3339 timestamp. Null, or an empty string such as a cleared form field sends, means never expires.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.

DeviceImportRow​

input

One device of an import file.

Input fieldTypeDescription
aliases[DeviceAliasInput!]Names a sender other than the platform knows the device by, as on a single create. A value another device holds makes the row a CONFLICT and a malformed one makes it INVALID. A device that already exists with a different alias set makes the row a CONFLICT.
credentialIdStringThe id the device presents (the access token itself, or the MQTT username). FACTORY_CREDENTIALS mode only.
credentialTypeStringACCESS_TOKEN or MQTT_BASIC. FACTORY_CREDENTIALS mode only.
credentialValueStringThe MQTT_BASIC password, at least 16 bytes. Write-only: stored as a keyed digest, never returned, logged or compared on a re-run. FACTORY_CREDENTIALS mode only.
descriptionStringFree-text description, up to 1024 characters.
deviceTypeTokenString!Token of the device's type. An unknown token makes the row INVALID.
externalIdStringOptional business identifier, up to 256 characters. Checked for conflicts; never the key.
installedAccuracyFloatHorizontal accuracy in metres, not negative. Needs installedLatitude and installedLongitude. Like installedElevation, an omitted accuracy compares as none against a device that exists.
installedElevationFloatMetres above the WGS84 ellipsoid. Needs installedLatitude and installedLongitude. When a device that already exists is compared, an omitted elevation compares as NONE: a row that leaves it out, against a device whose stored position has one, is a CONFLICT.
installedLatitudeFloatDegrees north where the device was installed, for a device that is fixed in place. Given together with installedLongitude or not at all. A value outside -90 to 90 makes the row INVALID. The position is stored with source IMPORT. A device that already exists makes the row a CONFLICT when its stored position differs, and always for a caller without location:installed:read, which is never told whether the position matches.
installedLongitudeFloatDegrees east where the device was installed, -180 to 180. See installedLatitude.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
provisioningProfileTokenStringToken of a provisioning profile to earmark the device for. An unknown profile, or one of a different device type, makes the row INVALID. A device that already exists with a different earmark makes the row a CONFLICT.
tokenString!Identifier of the device, and the key a re-run matches on. Required.

DeviceLocationDeclarationInput​

input

Sets a profile's position declaration. Supplying it states that the devices report their own position; an empty object makes that statement with no expectations.

Input fieldTypeDescription
expectedAccuracyMetersFloatHorizontal accuracy to expect, in metres. Must be a positive finite number when sent; omit it or send null to state no expectation.
expectedUpdateIntervalSecondsIntHow often a position fix is expected, in seconds. Must be positive when sent; omit it or send null to state no expectation.

DeviceProfileCreateRequest​

input

Fields for a new device profile. Its definitions are added afterwards, and take effect when the profile is published.

Input fieldTypeDescription
categoryStringFunctional class of the devices, such as thermostat or meter, up to 64 characters.
descriptionStringFree-text description, up to 1024 characters.
locationDeviceLocationDeclarationInputWhether the devices report their own position, and what to expect of it. Omit it when they do not.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
tokenString!Identifier for the new profile. A token already in use in the tenant is refused with CONFLICT.

DeviceProfileSearchCriteria​

input

Criteria for searching device profiles. Results are newest first.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

DeviceProfileUpdateRequest​

input

A partial update to a device profile's own fields. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it. The profile is named by the mutation's token argument; use renameDeviceProfile to change its token. Changes here are part of the draft.

Input fieldTypeDescription
categoryStringNew category, or null to clear it.
descriptionStringNew description, or null to clear it.
locationDeviceLocationDeclarationInputNew position declaration, replacing the stored one; null states that the devices do not report their own position. An empty object states that they do, with no expectations.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringNew name, or null to clear it.

DeviceReplaceRequest​

input

What a caller sends to swap the physical unit behind a device identity. It carries no device identity fields on purpose: there is no token, external id, device type or name, so a replacement cannot move the identity, the business key or the profile binding. Rotate credentials, not identity.

Input fieldTypeDescription
credentialIdStringThe identifier the new unit presents at connect time. Optional only for ACCESS_TOKEN, where a random token is minted and returned once in newCredential; required for every other type, since the server cannot invent an MQTT username.
credentialTokenStringToken for the new credential record. A UUID is generated when omitted.
credentialTypeStringType of the credential minted for the incoming unit. Defaults to ACCESS_TOKEN.
credentialValueStringThe password for an MQTT_BASIC credential: at least 16 bytes, counted as sent, and at most 4096. A shorter one is refused with extensions.code INVALID_VALUE. Write-only; it is stored only as a keyed digest. A password set before the 16-byte minimum keeps working until it is next changed.
deviceTokenString!Token of the surviving logical device. An unknown token is refused.
expiresAtStringWhen the new credential stops authenticating, as an RFC 3339 timestamp. Omit for never.
reasonStringThe operator's free-text note, for example water ingress or an RMA number. Recorded on the replacement.
unitIdentifierStringThe incoming physical unit's own identifier, such as a manufacturer serial or IMEI. Recorded on the replacement, not on the device.

DeviceReplacementSearchCriteria​

input

Criteria for listing device replacement records.

Input fieldTypeDescription
deviceStringOnly the replacements of the device with this token. Omit for every device.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

DeviceRevokedCertificateSearchCriteria​

input

Criteria used when listing the revoked certificates of a trust anchor.

Input fieldTypeDescription
kindStringOnly MANUAL or only CRL entries.
pageNumberInt!1-based page number.
pageSizeInt!Entries per page.

DeviceSearchCriteria​

input

Criteria for searching devices. Results are newest first.

Input fieldTypeDescription
aliasDeviceAliasInputReturn only the device this alias names. The value is matched in its stored spelling, so a DevEUI in either case finds the same device. A malformed alias is refused with INVALID_VALUE, and a caller limited to part of the tenant is refused.
deviceTypeStringReturn only devices of the device type with this token. An unknown token matches nothing.
expectedProvisioningProfileStringReturn only devices earmarked for the provisioning profile with this token. An unknown token matches nothing.
nameContainsStringReturn only devices whose name or token contains this text, ignoring case (a name is optional, so an unnamed device is found by its token). Blank matches all.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.
provisioningProfileStringReturn only devices that hold a credential issued by the provisioning profile with this token, revoked ones included. An unknown token matches nothing.

DeviceTrustAnchorCreateRequest​

input

Data required to create a trust anchor.

Input fieldTypeDescription
certificatePemString!Exactly one CA certificate in PEM: it must be a CA that may sign certificates, unexpired, use an RSA (2048 to 8192 bits), P-256, P-384 or Ed25519 key, be signed with a modern hash, and carry no name constraints. A private key anywhere in the text is refused. A tenant may hold 32 anchors.
descriptionStringFree-text description.
enabledBooleanDefaults to true.
metadataStringFree-form JSON the platform stores and does not interpret.
nameStringHuman-readable name.
tokenString!Identifier of the anchor, unique within the tenant.

DeviceTrustAnchorSearchCriteria​

input

Criteria used when searching for trust anchors.

Input fieldTypeDescription
enabledBooleanOnly anchors that are (or are not) enabled.
pageNumberInt!1-based page number.
pageSizeInt!Anchors per page.

DeviceTrustAnchorUpdateRequest​

input

A PARTIAL update: omit a field to leave it, send null to clear a nullable one. The certificate cannot be changed (another CA is another anchor).

Input fieldTypeDescription
descriptionStringFree-text description. Null clears it.
enabledBooleanRequired and unclearable. Setting it false ends the live sessions of the devices that rely on the anchor; if that cannot be confirmed the change is saved and the call answers that the sessions were not confirmed ended, and repeating it asks again.
metadataStringFree-form JSON the platform stores and does not interpret. Null clears it.
nameStringHuman-readable name. Null clears it.
ocspModeCertificateOcspModeRequired and unclearable. OFF asks no responder. ENFORCE_KNOWN and REQUIRE_CURRENT are refused while the instance's OCSP switch is off; REQUIRE_CURRENT is refused unless the instance allows it, and needs ocspResponderUrl.
ocspResponderUrlStringAn http or https URL, without credentials, that replaces each certificate's own responder. Null clears it. The address it resolves to must be one the instance's egress policy allows.
revocationModeCertificateRevocationModeRequired and unclearable. Switching to REQUIRE_CURRENT is refused while the anchor holds no current revocation list, or a registered certificate under it was issued by a CA that has none: the switch would refuse every such device.
revocationStaleGraceStringA Go duration of whole seconds, 0s to 168h. Null restores the instance default. While the anchor is in REQUIRE_CURRENT, a change is refused if it would leave an issuer without a current list.

DeviceTypeCreateRequest​

input

Fields for a new device type.

Input fieldTypeDescription
backgroundColorStringBackground colour, up to 32 characters.
borderColorStringBorder colour, up to 32 characters.
commandChannelStringCommand channel of the type: PUBLISH or HTTP_PULL, or omit it (or send an empty value) for the default channel, which behaves as PUBLISH. Any other value fails the request with INVALID_VALUE.
descriptionStringFree-text description, up to 1024 characters.
foregroundColorStringForeground (text) colour, up to 32 characters.
iconStringName of an icon representing the device type, up to 128 characters.
imageUrlStringURL of an image representing the device type, up to 512 characters.
maintenanceWindowTokenStringToken of the maintenance window that holds the type's disruptive commands until it opens. Omit it, or send an empty value, for a type with no window. An unknown token fails the request.
manufacturerStringManufacturer of the devices of this type, up to 128 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
modelStringModel of the devices of this type, up to 128 characters.
nameStringHuman-readable name, up to 128 characters.
profileTokenStringToken of the device profile the type adopts. Omit it, or send an empty value, for a type with no profile. An unknown token fails the request.
semanticTypes[String!]The classes an entity of this type is, as CURIEs (for example sdm-streetlighting:Streetlight) or full IRIs inside an enabled vocabulary. Each must be a CLASS of a pack the tenant has enabled, or a term under a custom prefix it declared; at most 8. A term outside the enabled vocabularies, of the wrong kind, deprecated, or malformed fails the request with INVALID_ARGUMENT naming it. Stored as expanded IRIs. Omit for none.
tokenString!Identifier for the new device type. A token already in use in the tenant is refused with CONFLICT.

DeviceTypeSearchCriteria​

input

Criteria for searching device types. Results are newest first.

Input fieldTypeDescription
nameContainsStringReturn only device types whose name or token contains this text, ignoring case (a name is optional, so an unnamed type is found by its token). Blank matches all.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

DeviceTypeUpdateRequest​

input

A partial update to a device type. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it; sending only name renames the type and changes nothing else. The type is named by the mutation's token argument, so there is no token here and a type's token cannot be changed.

Input fieldTypeDescription
backgroundColorStringNew background colour, or null to clear it.
borderColorStringNew border colour, or null to clear it.
commandChannelStringNew command channel: PUBLISH or HTTP_PULL, or null (or an empty value) to return the type to the default channel, which behaves as PUBLISH. Any other value fails the whole update with INVALID_VALUE.
descriptionStringNew description, or null to clear it.
foregroundColorStringNew foreground colour, or null to clear it.
iconStringNew icon name, or null to clear it.
imageUrlStringNew image URL, or null to clear it.
maintenanceWindowTokenStringToken of the maintenance window the type should use; null or an empty value removes the current one, after which its disruptive commands are sent whenever the device is reachable. An unknown token fails the whole update. Commands already waiting for the old window are moved to the new schedule within about a minute.
manufacturerStringNew manufacturer, or null to clear it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
modelStringNew model, or null to clear it.
nameStringNew name, or null to clear it.
profileTokenStringToken of the profile the type should adopt; null or an empty value detaches the current profile. An unknown token fails the whole update. Changing the profile changes what every device of the type measures and accepts.
semanticTypes[String!]New classes, replacing the stored ones: null or an empty list clears them. Omit to leave them alone. Validated as on create; only a request that names this field is validated.

DeviceUpdateRequest​

input

A partial update to a device. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it; the fields that cannot be cleared say so. The device is named by the mutation's token argument, so there is no token here. An empty object changes nothing.

Input fieldTypeDescription
aliases[DeviceAliasInput!]Replaces the device's aliases with exactly this list. Null or an empty list removes them all; omit the field to leave them alone. A value another device already holds under a scheme refuses the whole update with CONFLICT.
descriptionStringNew description, or null to clear it.
deviceTypeTokenStringToken of a different device type to move the device to. An explicit null or an empty value is refused, because every device must have a type; an unknown token fails the whole update.
enabledBooleanFalse to disable the device, true to enable it again. An explicit null is refused. Disabling a device that is already disabled keeps the time it was first disabled.
externalIdStringNew business identifier, or null to clear it. A value another device already has is refused with CONFLICT.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringNew name, or null to clear it.

EntityAttributeSearchCriteria​

input

Criteria for listing entity attributes. Every facet is optional and they AND together.

Input fieldTypeDescription
attrKeys[String!]Only attributes whose key is one of these, at most 1000 keys.
entityStringOnly attributes of the entity with this token. It takes effect only together with entityType; an entity that does not exist finds nothing.
entityTypeStringOnly attributes of entities of this type, for example device.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.
scopeStringOnly attributes in this scope: CLIENT, SERVER or SHARED.

EntityAttributeSetRequest​

input

Data required to set, or replace, an entity attribute. The owner is resolved from its type and token, which must name an existing entity.

Input fieldTypeDescription
attrKeyString!The attribute's key, up to 128 bytes.
entityString!Token of the entity the attribute belongs to.
entityTypeString!Entity type of the owner, for example device.
scopeString!CLIENT, SERVER or SHARED. See EntityAttribute.scope. Any other value is refused.
valueStringThe attribute's value as text, up to 64 KiB. Omit or send null for none.
valueTypeString!How to read value: STRING, LONG, DOUBLE, BOOLEAN or JSON. Any other value is refused.

EntityGroupCreateRequest​

input

Data required to create an entity group. membershipMode defaults to static; a selector is required for a dynamic group and refused for a static one. Edit a group afterwards with EntityGroupUpdateRequest.

Input fieldTypeDescription
backgroundColorStringBackground colour to display the group with, up to 32 characters. Not validated.
borderColorStringBorder colour to display the group with, up to 32 characters. Not validated.
descriptionStringFree-text description, up to 1024 characters.
foregroundColorStringForeground (text) colour to display the group with, up to 32 characters. Not validated.
iconStringName of an icon representing the group, up to 128 characters. Not checked against any icon set.
imageUrlStringURL of an image representing the group, up to 512 characters.
memberTypeString!The entity family the group collects: device, asset, area or customer. Cannot be changed later.
membershipModeStringstatic or dynamic. Omitted means static. Cannot be changed later.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
selectorStringThe CEL membership selector. Required, and only allowed, when membershipMode is dynamic. It is compiled and cost-checked on create.
tokenString!Identifier for the new group, unique within the tenant. Cannot be changed later.

EntityGroupSearchCriteria​

input

Criteria for listing entity groups. memberType and membershipMode are optional filters.

Input fieldTypeDescription
accessScopeBooleanKeep only the groups that are (true) or are not (false) access scopes. Omit it for both.
memberTypeStringOnly groups collecting this entity family: device, asset, area or customer.
membershipModeStringOnly groups with this membership mode: static or dynamic.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

EntityGroupUpdateRequest​

input

A partial update of an entity group. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. The token, memberType and membershipMode are absent because they are identity: changing the family would leave members that do not belong, and converting between static and dynamic would orphan the members.

Input fieldTypeDescription
backgroundColorStringBackground colour; null clears it.
borderColorStringBorder colour; null clears it.
descriptionStringFree-text description; null clears it.
foregroundColorStringForeground colour; null clears it.
iconStringIcon name; null clears it.
imageUrlStringImage URL; null clears it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.
selectorStringThe membership selector of a dynamic group; refused for a static group. A provided selector is recompiled and cost-checked before it replaces the stored draft. Null is refused, because a dynamic group with no selector matches nothing.

EntityRefInput​

input

A reference to an entity by its type and token.

Input fieldTypeDescription
tokenString!Token of the entity.
typeString!Entity type, for example device, asset, area, customer or group.

EntityRelationshipCreateRequest​

input

Data required to create an entity relationship. The source and target are resolved from their types and tokens, which must name existing entities.

Input fieldTypeDescription
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
relationshipTypeString!Token of the relationship type. An unknown token is refused.
sourceString!Token of the source entity.
sourceTypeString!Entity type of the source entity, for example device.
targetString!Token of the target entity.
targetTypeString!Entity type of the target entity, for example customer.
tokenString!Identifier for the new relationship, unique within the tenant.

EntityRelationshipSearchCriteria​

input

Criteria for listing entity relationships. Every facet is optional and they AND together.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.
relationshipTypeStringOnly relationships of the relationship type with this token.
sourceStringOnly relationships whose source has this token. It takes effect only together with sourceType.
sourceTypeStringOnly relationships whose source is of this entity type.
targetStringOnly relationships whose target has this token. It takes effect only together with targetType.
targetTypeStringOnly relationships whose target is of this entity type.
trackedBooleanTrue selects relationships of tracked types and false those of untracked types. Omit for either.

EntityRelationshipTypeCreateRequest​

input

Data required to create an entity relationship type.

Input fieldTypeDescription
descriptionStringFree-text description, up to 1024 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
semanticInverseStringThe predicate's inverse. Omitted, it is the inverse the vocabulary declares for the predicate (none when it declares none), and the stored value is that resolved term. An inverse without a predicate is refused.
semanticPredicateStringA PREDICATE of an enabled vocabulary pack, as a CURIE or full IRI. A term of the wrong kind, deprecated, or outside the enabled vocabularies fails the request with INVALID_ARGUMENT naming it. Stored as an expanded IRI.
tokenString!Identifier for the new relationship type, unique within the tenant. Cannot be changed later.
trackedBoolean!Whether relationships of this type are tracked: denormalized onto events and counted as ownership for scoped access. A device may carry only a bounded number of tracked relationships.

EntityRelationshipTypeSearchCriteria​

input

Criteria for listing entity relationship types.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

EntityRelationshipTypeUpdateRequest​

input

A partial update of an entity relationship type. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it.

Input fieldTypeDescription
descriptionStringFree-text description; null clears it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.
semanticInverseStringNew inverse: null clears it. Omitted while the predicate changes, it becomes the inverse the vocabulary declares for the new predicate. An inverse is refused while no predicate is bound.
semanticPredicateStringNew predicate: null clears it, and the inverse with it. Omit to leave it alone. Validated as on create.
trackedBooleanWhether relationships of this type are tracked. Null is refused rather than read as false, which would stop denormalizing the type's relationships onto events and report success.

FacetKeySearchCriteria​

input

Criteria for listing declared facet keys.

Input fieldTypeDescription
memberTypeStringOnly facet keys declared for this entity family: device, asset, area or customer. Omit for every family.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

FacetKeySetRequest​

input

Data required to declare, or redeclare, a facet key. The natural key, memberType and key, selects the row and the remaining fields are rewritten. Only attribute-source facets can be written, so there is no source field.

Input fieldTypeDescription
keyString!The attribute key the facet declares.
labelStringAn optional human display label for the axis. Omit to fall back to the key.
memberTypeString!The entity family the facet classifies: device, asset, area or customer.
valueTypeString!The value type of the facet's attribute values: STRING, LONG, DOUBLE, BOOLEAN or JSON.
values[String!]An optional vocabulary of values for the console typeahead. Omit for free-form values.

FacetValueImportRow​

input

One facet value on an existing device, asset, area or customer, addressed by token. The server uses SHARED scope and the facet declaration's value type. Text is trimmed as on a single attribute write; blank values are INVALID. This operation does not clear attributes or create entities.

Input fieldTypeDescription
keyString!A facet key declared for this member family.
memberTypeString!The member family: device, asset, area or customer.
tokenString!The existing entity's token in the caller's tenant.
valueString!Text to validate and normalize under the facet's declared type.

GeoFenceCreateRequest​

input

Data required to create a geofence. The geometry is validated on write: its kind, GeoJSON shape, coordinate ranges and size. Two ceilings are enforced at authoring time: the positions one fence may carry (512 by default) and the fences a tenant may hold (100 by default), both set by the tenant's tier. A stored geometry document is also limited to 32 KiB.

Input fieldTypeDescription
descriptionStringFree-text description, up to 1024 characters.
geometryString!The geometry document, as described on GeoFence.geometry. Must declare kind POLYGON_2D; reserved kinds are refused.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
tokenString!Identifier for the new fence, unique within the tenant. Cannot be changed later.

GeoFenceSearchCriteria​

input

Criteria for listing geofences.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

GeoFenceUpdateRequest​

input

A partial update of a geofence. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. A fence's token is immutable, so there is no token field: create the new fence first and delete the old one if a different token is wanted.

Input fieldTypeDescription
descriptionStringFree-text description; null clears it.
geometryStringThe geometry document. Required: null is refused, because a fence with no shape is not a fence. Omitting it leaves the shape alone, so a rename or metadata edit is not held to the tenant's position ceiling, which refuses growth rather than size.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.

HeaderInput​

input

One header of a pasted webhook request.

Input fieldTypeDescription
nameString!The header name.
valueString!The header value.

InstalledPositionInput​

input

The position an operator, an import or a survey tool records.

Input fieldTypeDescription
accuracyFloatHorizontal accuracy in metres. Not negative.
elevationFloatMetres above the WGS84 ellipsoid.
latitudeFloat!Degrees north. Values outside -90 to 90, and values that are not numbers, are refused.
longitudeFloat!Degrees east. Values outside -180 to 180, and values that are not numbers, are refused.
sourceInstalledPositionSourceHow the position was obtained. MANUAL when omitted.

IntegrationCreateRequest​

input

Data required to create an integration.

Input fieldTypeDescription
descriptionStringFree-text description.
deviceTypeTokens[String!]!Tokens of the device types the integration may resolve devices of; at least one, at most 50.
enabledBoolean!Whether the integration accepts traffic. A disabled integration can be enabled later.
genericStringThe generic settings as a JSON object. Required for the generic types and refused for the others. idFrom is pointer:/path, header:Name or query:name; a binary body can only name a header or a query value.
identityStringDEV_EUI (the default) for CHIRPSTACK_V4; DEV_EUI (the default) or DEVICE_ID for TTS_V3; required, as ALIAS:custom.name, for the generic types.
linkMetricsBooleanStore the receive-link readings beside the decoded values. Defaults to false.
metadataStringFree-form JSON the platform stores and does not interpret.
nameStringHuman-readable name.
tokenString!Identifier of the integration, unique within the tenant. It is part of the sender's URL.
typeString!CHIRPSTACK_V4, TTS_V3, GENERIC_JSON or GENERIC_BINARY.

IntegrationSearchCriteria​

input

Criteria used when searching for integrations.

Input fieldTypeDescription
deviceTypeStringReturn only integrations whose scope includes the device type with this token.
enabledBooleanReturn only integrations that are enabled (true) or disabled (false).
pageNumberInt!1-based page number.
pageSizeInt!Rows per page.
typeStringReturn only integrations of this type.

IntegrationUpdateRequest​

input

A partial update of an integration. Omitted fields keep their stored value.

Input fieldTypeDescription
descriptionStringFree-text description. Null clears it.
deviceTypeTokens[String!]Replaces the scope. At least one device type; null is refused.
enabledBooleanRequired and unclearable.
genericStringReplaces the generic settings; refused for the network-server types, and null is refused for the generic ones.
identityStringRequired and unclearable; validated against the integration's type.
linkMetricsBooleanRequired and unclearable.
metadataStringFree-form JSON the platform stores and does not interpret. Null clears it.
nameStringHuman-readable name. Null clears it.

MaintenanceWindowCreateRequest​

input

Fields for a new maintenance window.

Input fieldTypeDescription
descriptionStringFree-text description, up to 1024 characters.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
slotsString!The weekly openings as a JSON array of {day, start, durationMinutes}, at least one and at most 56. Unknown keys and out-of-range values are refused.
timezoneString!An IANA time zone name such as Europe/Berlin. Local and unknown names are refused.
tokenString!Identifier for the new window. A token already in use in the tenant is refused with CONFLICT.

MaintenanceWindowSearchCriteria​

input

Criteria for searching maintenance windows. Results are newest first.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

MaintenanceWindowUpdateRequest​

input

A partial update to a maintenance window: omit a field to leave it alone.

Input fieldTypeDescription
descriptionStringNew description, or null to clear it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringNew name, or null to clear it.
slotsStringNew weekly openings (validated as on create). An explicit null is refused.
timezoneStringNew time zone. An explicit null or an unknown zone is refused.

MetricDefinitionCreateRequest​

input

Fields for a new metric definition.

Input fieldTypeDescription
dataTypeString!The value type: DOUBLE, INT, BOOLEAN or STRING. DOUBLE, INT and BOOLEAN (stored as 0 or 1) are numeric readings; a STRING reading is stored as text (up to 4096 bytes) and is never aggregated.
descriptionStringFree-text description, up to 1024 characters.
descriptorStringOptional semantic tag, such as a Web of Things type.
deviceProfileTokenString!Token of the profile to declare the metric on. An unknown token fails the request.
enumStringAllowed values as a JSON array of strings. Must be valid JSON.
expressionStringA formula, which makes the new metric calculated: its value is computed from the profile's measured metrics instead of reported by devices. Omit it for a measured metric. Which of the two a metric is cannot be changed later. At most 1024 bytes and not blank. The formula is checked when the profile is published, not here; use testMetricFormula to check it sooner. It may read up to 8 numbers from the device's metadata as device.name; naming one is declaring it, and a device whose metadata lacks it gets no value for the reading.
maxValueFloatLargest value accepted for a DOUBLE or INT metric.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
metricKeyString!The key measurements will use for this metric, at most 128 characters. A key the profile already declares is refused with CONFLICT.
minValueFloatSmallest value accepted for a DOUBLE or INT metric.
nameStringHuman-readable name, up to 128 characters.
semanticPointClassStringThe Brick point class of the metric's series: a class of the enabled brick pack that is a brick:Point. A custom-prefix class cannot be shown to be one and is refused.
semanticPropertyStringThe quantity or property the metric observes: an OBSERVABLE_PROPERTY term of an enabled vocabulary pack, as a CURIE or full IRI. Fails with INVALID_ARGUMENT naming the term when it is unknown, of another kind, deprecated or outside the enabled vocabularies. Stored as an expanded IRI.
tokenString!Identifier for the new metric definition. A token already in use in the tenant is refused with CONFLICT.
unitStringUnit of measure, such as a UCUM code (Cel, kW).

MetricDefinitionSearchCriteria​

input

Criteria for searching metric definitions. Results are newest first.

Input fieldTypeDescription
deviceProfileStringReturn only definitions on the profile with this token. An unknown token matches nothing.
metricKeyStringReturn only definitions with exactly this metric key.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

MetricDefinitionUpdateRequest​

input

A partial update to a metric definition. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it; the fields that cannot be cleared say so. The definition is named by the mutation's token argument, so there is no token here. Any refusal leaves the definition unchanged.

Input fieldTypeDescription
dataTypeStringNew value type: DOUBLE, INT, BOOLEAN or STRING. An explicit null is refused.
descriptionStringNew description, or null to clear it.
descriptorStringNew semantic tag, or null to clear it.
deviceProfileTokenStringToken of another profile to move the definition to. An explicit null or a blank value is refused, and an unknown token fails the whole update.
enumStringNew allowed values as a JSON array of strings, or null to allow any value.
expressionStringNew formula for a calculated metric. Refused on a measured metric, which cannot become calculated. A null or blank value is refused on a calculated metric, which cannot become measured; delete it and create a new metric instead.
maxValueFloatNew upper bound, or null to remove it.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
metricKeyStringNew key for the metric, unique within the profile the definition ends up in. An explicit null or a blank value is refused.
minValueFloatNew lower bound, or null to remove it.
nameStringNew name, or null to clear it.
semanticPointClassStringNew Brick point class, or null to clear it. Omit to leave it alone.
semanticPropertyStringNew observed property, or null to clear it. Omit to leave it alone.
unitStringNew unit, or null to clear it.

MetricValueInput​

input

One typed value for testMetricFormula: a measured input of the sample, or a device constant.

Input fieldTypeDescription
keyString!The measured metric's key, or the device constant's name.
valueString!The value as a device would send it, such as 230.5, 12 or true; for a device constant, a number such as 1.02.

PaginationInput​

input

Which page of results to return.

Input fieldTypeDescription
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

PayloadDecoderTestInput​

input

A decoder and one input to run it over. Name at most one of frameHex, frameBase64, json, webhookBody and sampleId; naming none runs only the saved vectors.

Input fieldTypeDescription
contentTypeStringWith webhookBody: the request's content type. A network server integration refuses a non-JSON one.
documentStringThe decoder document as JSON text. Omit to test the profile's saved draft decoder.
fCntIntThe LoRaWAN uplink frame counter, for a frame given as hex or base64.
fPortIntThe LoRaWAN application port, for a frame given as hex or base64.
frameBase64StringThe frame as base64. At most 4096 bytes once decoded.
frameHexStringThe frame as hex; whitespace is ignored. At most 4096 bytes once decoded.
headers[HeaderInput!]With webhookBody: the request headers, which a generic integration may read its device id from.
integrationTokenStringToken of the stored integration whose type and settings parse webhookBody.
jsonStringA JSON object, given to the decoder's JSON or DECODED input, whichever it declares.
messageTypeStringWith webhookBody: the message-type path segment some network servers post each message type to.
profileTokenString!Token of the profile whose draft metrics the decoder is checked against.
query[QueryParamInput!]With webhookBody: the query parameters, such as the event type of a network server.
sampleIdIDLoad the input from a stored failure sample of this profile instead. Running a decoder over a sample reveals its bytes, so this needs device:write, not device:read. A sample of another tenant or profile is NOT_FOUND.
webhookBodyStringA whole network-server or generic webhook body, up to 256 KiB, parsed by the same code that parses it at ingest. Needs integrationToken.

ProvisioningProfileCreateRequest​

input

Data required to create a provisioning profile. The provision secret is not chosen by the caller: the server generates it and returns it once in the response.

Input fieldTypeDescription
credentialTypeStringType of credential to issue. When sent it must be a type provisioning can mint; for a certificate profile it must be X509_CERTIFICATE.
descriptionStringFree-text description, up to 1024 characters.
deviceTypeTokenString!Token of the device type of every device the profile registers, and the only type it will adopt. An unknown token is refused.
enabledBoolean!Whether the profile accepts registrations.
expiresAtStringWhen the profile stops accepting registrations, as an RFC 3339 timestamp. Omit for never.
maxDevicesIntThe most devices the profile may register; at least 1. Omit or send null for no cap.
metadataStringCaller-defined metadata. Must be valid JSON; an empty string means none.
nameStringHuman-readable name, up to 128 characters.
provisionKeyString!The key a fleet presents to register itself. Refused when empty or whitespace-only, and unique within the tenant. A padded value is stored exactly as sent.
strategyString!ALLOW_NEW registers a device that does not exist yet and adopts an earmarked one; CHECK_PRE_PROVISIONED registers only earmarked devices that already exist. Neither adopts a device that was not earmarked for the profile.
tokenString!Identifier for the new profile, unique within the tenant. Cannot be changed later.
trustAnchorTokenStringMakes this a certificate profile: its devices authenticate by a client certificate whose chain reaches this trust anchor, and it has no provision secret. credentialType, when sent, must be X509_CERTIFICATE. A tenant may hold eight certificate profiles. A device earmarked for one must have the token derived from its externalId, and takes it when the token is left empty.

ProvisioningProfileSearchCriteria​

input

Criteria for listing provisioning profiles. Every facet is optional and they AND together.

Input fieldTypeDescription
deviceTypeStringOnly profiles that register devices of the device type with this token.
enabledBooleanTrue selects enabled profiles and false disabled ones. Omit for either.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.
strategyStringOnly profiles with this strategy: ALLOW_NEW or CHECK_PRE_PROVISIONED.

ProvisioningProfileUpdateRequest​

input

A partial update of a provisioning profile. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. The token is not here because the mutation's token argument names the profile. The credential type cannot be edited and the secret is replaced only by rotateProvisioningProfileSecret.

Input fieldTypeDescription
descriptionStringFree-text description; null clears it.
deviceTypeTokenStringDevice type stamped onto auto-created devices. Null is refused, and an unknown token refuses the whole update.
enabledBooleanWhether the profile accepts registrations. Null is refused rather than read as false.
expiresAtStringWhen the profile stops accepting registrations, as an RFC 3339 timestamp. Null, or an empty string, means never expires.
maxDevicesIntThe most devices the profile may register; at least 1. Null removes the cap. Lowering it below the number already registered only refuses further registrations.
metadataStringNew metadata (valid JSON, replacing the stored document), or null to clear it.
nameStringHuman-readable name; null clears it.
provisionKeyStringThe key a fleet presents to register itself. Required: null is refused, because a blank key authenticates nothing. The secret is not editable here; rotateProvisioningProfileSecret replaces it.
strategyStringALLOW_NEW or CHECK_PRE_PROVISIONED. Required: null is refused. Validated against the known strategies when sent.
trustAnchorTokenStringRe-points a certificate profile at another trust anchor. Null is refused, and so is naming an anchor on a profile that authenticates by secret.

QueryParamInput​

input

One query parameter of a pasted webhook request.

Input fieldTypeDescription
nameString!The parameter name.
valueString!The parameter value.

RunAutomationReviewInput​

input

(Preview: may change in a minor release.) RunAutomationReviewInput parameters.

Input fieldTypeDescription
deviceTokens[String!]!(Preview: may change in a minor release.) The device tokens selected for replay.
expectations[AutomationReviewExpectationInputValue!](Preview: may change in a minor release.) The expectations to evaluate against the comparison.
profileTokenString!(Preview: may change in a minor release.) The profile whose draft is reviewed.
requestIdString!(Preview: may change in a minor release.) A caller-generated idempotency key for this review request.
ruleTokenString(Preview: may change in a minor release.) The changed rule token, when one rule is compared.
shiftWindowSecondsInt(Preview: may change in a minor release.) The maximum pairing shift, in seconds; null uses the engine default.
windows[AutomationReviewWindowInput!]!(Preview: may change in a minor release.) The incident and normal replay windows.

SemanticContextRequest​

input

The semantic context to set. It replaces the stored one whole.

Input fieldTypeDescription
customPrefixes[CustomPrefixInput!]!Custom prefixes for the tenant's own terms; at most 32. An empty list declares none. A prefix may not shadow a pack's, and namespaces may not overlap.
enabledPacks[SemanticPack!]!The packs to enable. An empty list enables none.

UnregisteredIntegrationDeviceSearchCriteria​

input

Which integration's unregistered devices to return, and the page. Most recently seen first.

Input fieldTypeDescription
integrationString!Token of the integration. An unknown token matches nothing.
pageNumberInt!Page to return, starting at 1. Values below 1 are read as 1.
pageSizeInt!Results per page. Below 1 means the default of 100; above 1000 is capped at 1000.

Enums​

AgentAlarmAction · AgentProposalKind · AgentProposalState · AgentProposalStatus · AgentProposalVerdict · AlarmClearReason · AlarmDispositionLabel · AlarmSuppressionKind · AuthoredVia · AutomationReviewBreakGlassAction · AutomationReviewChangeKind · AutomationReviewKind · AutomationReviewOutcome · AutomationReviewPolicyChangeState · AutomationReviewProfileChangeArea · AutomationReviewProfileChangeType · AutomationReviewStartState · AutomationReviewState · AutomationReviewVerdict · AutomationReviewWindowRole · BulkChangeDispatch · BulkChangeEnforcement · BulkChangeEvidence · BulkChangeEvidenceBasis · BulkChangeExecutorState · BulkChangeLinePosting · BulkChangeLineSettlement · BulkChangeVerdict · CertificateOcspMode · CertificateRevocationMode · CertificateRevocationReason · DeviceFacet · DeviceImportMode · DeviceImportOutcome · FleetOperationEnforcement · InstalledPositionSource · IntegrationDeviceOutcome · PayloadDecoderInput · PayloadDecoderKind · PositionFamily · RevocationStatus · SemanticPack

AgentAlarmAction​

enum

(Preview: may change in a minor release.) What an AI agent asks to be done to alarms: ACK acknowledges them, CLEAR clears them.

ValueDescription
ACK(Preview: may change in a minor release.) Acknowledge the alarms.
CLEAR(Preview: may change in a minor release.) Clear the alarms. Clearing an alarm whose condition is still active hides a live condition.

AgentProposalKind​

enum

(Preview: may change in a minor release.) The kind of action an agent proposal asks for.

ValueDescription
ALARM_ACK(Preview: may change in a minor release.) Acknowledge alarms.
ALARM_CLEAR(Preview: may change in a minor release.) Clear alarms.

AgentProposalState​

enum

(Preview: may change in a minor release.) Where an agent proposal is in its life.

ValueDescription
PROPOSED(Preview: may change in a minor release.) Waiting for people to approve it. The only state that changes.
EXECUTED(Preview: may change in a minor release.) Approved and carried out.
REJECTED(Preview: may change in a minor release.) A person rejected it.
EXPIRED(Preview: may change in a minor release.) Nobody approved it before it expired.
REFUSED(Preview: may change in a minor release.) The tenant's agent policy, or a check made when a person approved it, refused it. The reasons say why.
CANCELLED(Preview: may change in a minor release.) Withdrawn by the agent that proposed it.
KILLED(Preview: may change in a minor release.) Ended by an agent-actions switch being turned off.

AgentProposalStatus​

enum

(Preview: may change in a minor release.) What happened to a proposal request.

ValueDescription
DRY_RUN(Preview: may change in a minor release.) A dry run: the verdict and checks, with nothing stored.
PENDING_APPROVAL(Preview: may change in a minor release.) Stored, waiting for approval.
REFUSED(Preview: may change in a minor release.) Refused. When it was stored for the record, proposal is set.
EXISTING(Preview: may change in a minor release.) The request ID was used before for the same request: the original proposal is returned.

AgentProposalVerdict​

enum

(Preview: may change in a minor release.) The tenant's verdict on an agent proposal.

ValueDescription
REFUSE(Preview: may change in a minor release.) The action is not allowed.
APPROVE(Preview: may change in a minor release.) The action waits for the given number of people to approve it.

AlarmClearReason​

enum

Why an alarm ended, when it was cleared for a lifecycle reason.

ValueDescription
ORIGINATOR_DELETEDThe alarm's originator was deleted, so the alarm was cleared with it.

AlarmDispositionLabel​

enum

An operator's verdict on one alarm cycle. New values may be added in a later release; a client should treat a value it does not know as unhandled rather than as any of these.

ValueDescription
TRUE_POSITIVEThe condition was real and needed attention.
FALSE_POSITIVEThe condition was not real, for example a bad reading, a fouled sensor or a threshold set wrong. A different rule should not have raised it.
EXPECTEDThe condition was real but expected and needed no action, such as planned maintenance or a commissioning test.

AlarmSuppressionKind​

enum

How a suppression window opens.

ValueDescription
ONE_SHOTA single bounded interval.
RECURRINGWeekly openings in an IANA time zone.

AuthoredVia​

enum

The door through which a rule draft was saved. The door is declared by the client that saves the rule, so it is advisory origin metadata, not proof of how the content was produced and not proof of human review. Recorded doors are only ever added to, so a later save through another door never removes one, DESCRIBE included.

ValueDescription
FORMSaved from the console's rule form.
CANVASSaved from the console's visual automation canvas.
DESCRIBEDrafted through the natural-language Describe door, which uses AI assistance, and then saved.
PRODUCT_AS_CODESaved by dcctl product apply from a product bundle.
APISaved through the API by a client that declared no door. This is the default.
UNKNOWNSaved before doors were recorded, so the door is not known.

AutomationReviewBreakGlassAction​

enum

(Preview: may change in a minor release.) An activation change made outside review.

ValueDescription
ROLLBACK(Preview: may change in a minor release.) Changing the active profile version.
REPOINT_TYPE(Preview: may change in a minor release.) Changing the profile bound to a type.
MOVE_DEVICE(Preview: may change in a minor release.) Moving a device out of a protected type.

AutomationReviewChangeKind​

enum

(Preview: may change in a minor release.) Automation review ChangeKind vocabulary.

ValueDescription
ADDED(Preview: may change in a minor release.) An intent exists only in the draft.
REMOVED(Preview: may change in a minor release.) An intent exists only in the baseline.
SHIFTED(Preview: may change in a minor release.) A paired intent occurs at a different time.
CONTENT_CHANGED(Preview: may change in a minor release.) Content changed.

AutomationReviewKind​

enum

(Preview: may change in a minor release.) Automation review Kind vocabulary.

ValueDescription
RULE_CHANGE(Preview: may change in a minor release.) Rule change.
NO_AUTOMATION_CHANGE(Preview: may change in a minor release.) No automation change.
UNREVIEWABLE(Preview: may change in a minor release.) Unreviewable.

AutomationReviewOutcome​

enum

(Preview: may change in a minor release.) Automation review Outcome vocabulary.

ValueDescription
PASSED(Preview: may change in a minor release.) Passed.
FAILED(Preview: may change in a minor release.) Failed.
INCONCLUSIVE(Preview: may change in a minor release.) Inconclusive.
NO_AUTOMATION_CHANGE(Preview: may change in a minor release.) No automation change.

AutomationReviewPolicyChangeState​

enum

(Preview: may change in a minor release.) The lifecycle of a proposed policy change.

ValueDescription
PENDING(Preview: may change in a minor release.) Waiting for approval or a permitted delay.
APPLIED(Preview: may change in a minor release.) The proposal has taken effect.
CANCELLED(Preview: may change in a minor release.) The proposal was cancelled.
SUPERSEDED(Preview: may change in a minor release.) A later policy change replaced this proposal.

AutomationReviewProfileChangeArea​

enum

(Preview: may change in a minor release.) Automation review ProfileChangeArea vocabulary.

ValueDescription
RULE(Preview: may change in a minor release.) Rule.
METRIC(Preview: may change in a minor release.) Metric.
COMMAND(Preview: may change in a minor release.) Command.
DECODER(Preview: may change in a minor release.) Decoder.
LOCATION(Preview: may change in a minor release.) Location.
CONFIGURATION(Preview: may change in a minor release.) Configuration.
SEMANTICS(Preview: may change in a minor release.) Semantics.

AutomationReviewProfileChangeType​

enum

(Preview: may change in a minor release.) Automation review ProfileChangeType vocabulary.

ValueDescription
ADDED(Preview: may change in a minor release.) A profile element was added.
REMOVED(Preview: may change in a minor release.) A profile element was removed.
MODIFIED(Preview: may change in a minor release.) Modified.

AutomationReviewStartState​

enum

(Preview: may change in a minor release.) Automation review StartState vocabulary.

ValueDescription
UNKNOWN(Preview: may change in a minor release.) Unknown.
CLEAR(Preview: may change in a minor release.) Clear.
RAISED(Preview: may change in a minor release.) Raised.

AutomationReviewState​

enum

(Preview: may change in a minor release.) Automation review State vocabulary.

ValueDescription
RAN(Preview: may change in a minor release.) Ran.
APPROVED(Preview: may change in a minor release.) Approved.
REJECTED(Preview: may change in a minor release.) Rejected.
CONSUMED(Preview: may change in a minor release.) Consumed.
EXPIRED(Preview: may change in a minor release.) Expired.

AutomationReviewVerdict​

enum

(Preview: may change in a minor release.) Automation review Verdict vocabulary.

ValueDescription
PASS(Preview: may change in a minor release.) Pass.
FAIL(Preview: may change in a minor release.) Fail.
INCONCLUSIVE(Preview: may change in a minor release.) Inconclusive.

AutomationReviewWindowRole​

enum

(Preview: may change in a minor release.) Automation review WindowRole vocabulary.

ValueDescription
INCIDENT(Preview: may change in a minor release.) Incident.
NORMAL(Preview: may change in a minor release.) Normal.

BulkChangeDispatch​

enum

Preview. Where an operation is in dispatching its lines. A paused or dispatched operation is a resting state, not a failure.

ValueDescription
DRAFTPreview. Reserved for a later release.
PLANNINGPreview. The lines are being written.
READYPreview. Planned and waiting for a person to start it.
RUNNINGPreview. Lines are being applied.
PAUSEDPreview. No line is applied until it is resumed.
DISPATCHEDPreview. Every line has been applied or refused; evidence may still be outstanding.
ABORTEDPreview. Stopped for good: lines not yet applied were cancelled.

BulkChangeEnforcement​

enum

Preview. Database enforcement of the device attribute writer protocol.

ValueDescription
NOT_INSTALLEDPreview. The expected enforcing trigger and function are not installed on the device attribute table.
DISABLEDPreview. The expected enforcing trigger exists but is disabled or enabled without ALWAYS.
ENFORCEDPreview. The expected enforcing trigger covers INSERT, UPDATE and DELETE, has no WHEN condition and is enabled ALWAYS.
UNREADABLEPreview. The database catalog could not be read. Enforcement cannot be confirmed.

BulkChangeEvidence​

enum

Preview. Whether the devices have yet answered for the lines that were applied.

ValueDescription
OPENPreview. At least one applied line has no verdict, or is ambiguous.
CLOSEDPreview. Every applied line has a verdict.

BulkChangeEvidenceBasis​

enum

Preview. What kind of report decided a line's settlement.

ValueDescription
REPORT_LOGPreview. The full log of accepted reports covers the line.
LATEST_STATEPreview. Only the device's latest reported state was available.

BulkChangeExecutorState​

enum

Preview. Whether the engine that applies the operation is making progress.

ValueDescription
IDLEPreview. Not running, so there is nothing to apply.
WORKINGPreview. Running and making progress.
HELDPreview. Running and waiting on a hold reported in the last minute; holdCode names it.
STALLEDPreview. Running with lines left to apply, no hold, and nothing applied for five minutes.
UNKNOWNPreview. Running, but no replica has reported on it in the last minute.

BulkChangeLinePosting​

enum

Preview. What happened to a line when it was applied.

ValueDescription
PLANNEDPreview. Not applied yet.
DISPATCHINGPreview. Reserved for a later release.
POSTEDPreview. Applied; the device's own answer decides the settlement.
REFUSEDPreview. Not applied: the line was refused, with a code.
SKIPPEDPreview. Not applied: the target no longer qualified.
CANCELLEDPreview. Not applied: the operation was aborted first.
POSTING_UNKNOWNPreview. Reserved for a later release.

BulkChangeLineSettlement​

enum

Preview. The device's answer for an applied line.

ValueDescription
CONFIRMEDPreview. The device reported it applied the value.
FAILEDPreview. The device reported it rejected the value.
SUPERSEDEDPreview. The device was given a newer configuration before it answered for this one.
AMBIGUOUSPreview. No answer arrived in time; a person decides.
RESOLVED_CONFIRMEDPreview. A person resolved an ambiguous line as confirmed.
RESOLVED_FAILEDPreview. A person resolved an ambiguous line as failed.

BulkChangeVerdict​

enum

Preview. A person's verdict on an ambiguous line.

ValueDescription
CONFIRMEDPreview. The person confirmed the change.
FAILEDPreview. The person judged the change failed.

CertificateOcspMode​

enum

How an anchor uses its issuers' OCSP responders at connect. A certificate a responder says is revoked is always refused (a verified revoked answer for any certificate on any verified path wins); the modes differ in what an answer that could not be had means.

ValueDescription
OFFNo responder is asked. The default for every anchor.
ENFORCE_KNOWNA revoked answer refuses; a status that could not be learned (a timeout, an unreachable or refused responder, an unusable answer) is ADMITTED and counted. Availability over completeness.
REQUIRE_CURRENTA revoked answer refuses, and so does a certificate whose status could not be confirmed current. A responder outage refuses new connects once cached answers expire.

CertificateRevocationMode​

enum

How an anchor treats the completeness of its revocation lists.

ValueDescription
ENTRIESA listed certificate is refused; an issuer with no list, or a stale one, is allowed.
REQUIRE_CURRENTA listed certificate is refused, and so is one whose issuer has no current list.

CertificateRevocationReason​

enum

Why a certificate was revoked (RFC 5280 section 5.3.1). A manual revocation that names none is UNSPECIFIED.

ValueDescription
UNSPECIFIEDNo reason given.
KEY_COMPROMISEThe certificate's private key is known or suspected to be compromised.
CA_COMPROMISEThe key of the CA that issued the certificate is known or suspected to be compromised.
AFFILIATION_CHANGEDThe subject changed affiliation; the certificate no longer applies, and its key is not compromised.
SUPERSEDEDThe certificate was replaced by another.
CESSATION_OF_OPERATIONThe certificate is no longer needed because its subject ceased operating.
CERTIFICATE_HOLDThe certificate is suspended, not permanently revoked.
PRIVILEGE_WITHDRAWNA privilege the certificate granted was withdrawn.
AA_COMPROMISEThe key of an attribute authority is known or suspected to be compromised.

DeviceFacet​

enum

A free-text classification field whose values in use facetValues can list.

ValueDescription
MANUFACTURERThe manufacturer field of device types.
MODELThe model field of device types.
CATEGORYThe category field of device profiles.

DeviceImportMode​

enum

How an import treats credentials. No mode generates a secret.

ValueDescription
NONECreate devices only. Credential columns are refused.
FACTORY_CREDENTIALSCreate each device together with the credential a factory supplied for it, in one transaction. credentialType and credentialId are required on every row.

DeviceImportOutcome​

enum

What happened to one row of an import.

ValueDescription
CREATEDThe device (and its credential, in FACTORY_CREDENTIALS mode) was created; on a dry run, would be.
EXISTSThe device already exists exactly as the row describes it. A success; nothing was written.
CONFLICTThe device, external id or credential id is taken by something different. Nothing was written.
INVALIDThe row is malformed or names something that does not exist.
REFUSEDThe row is well-formed and was refused by a rule of the platform.

FleetOperationEnforcement​

enum

Preview. Deprecated; use BulkChangeEnforcement via bulkChangeReadiness. Database enforcement of the device attribute writer protocol.

ValueDescription
NOT_INSTALLEDPreview. The expected enforcing trigger and function are not installed on the device attribute table.
DISABLEDPreview. The expected enforcing trigger exists but is disabled or enabled without ALWAYS.
ENFORCEDPreview. The expected enforcing trigger covers INSERT, UPDATE and DELETE, has no WHEN condition and is enabled ALWAYS.
UNREADABLEPreview. The database catalog could not be read. Enforcement cannot be confirmed.

InstalledPositionSource​

enum

Where an installed position came from.

ValueDescription
SURVEYMeasured on site by a survey.
IMPORTRead from a fleet import file.
MANUALEntered by an operator.
INFERREDDerived from other data rather than measured.

IntegrationDeviceOutcome​

enum

What resolveIntegrationDevice concluded.

ValueDescription
RESOLVEDThe alias names a device whose type is in the integration's scope.
UNREGISTEREDNo device in scope carries the alias. The sighting was recorded, unless a device outside the integration's scope holds the alias, in which case it reads the same but nothing is recorded: that value is not an unregistered device, and creating a device with it would be refused.
DISABLEDThe token matched an integration that an operator has switched off. This is not a failed credential: nothing is resolved or recorded.
UNAUTHENTICATEDNo such integration, or the token did not match. One answer to both.

PayloadDecoderInput​

enum

Which input of an uplink a decoder reads. An uplink without it fails to decode with missing_input.

ValueDescription
FRAMEThe raw frame: a LoRaWAN payload, or a binary webhook body.
JSONA JSON item from a generic webhook.
DECODEDThe object a network server already decoded.

PayloadDecoderKind​

enum

The engine a payload decoder runs on. Only CEL is executable; a WASM document is refused with UNSUPPORTED_DECODER_KIND.

ValueDescription
CELExpressions in a bounded, loop-free expression language over a library of byte and bit readers.
WASMReserved. Refused wherever a decoder is saved or published.

PositionFamily​

enum

The entity kinds a position can be installed on.

ValueDescription
DEVICEA device, named by its token.
ASSETAn asset, named by its token.

RevocationStatus​

enum

How fresh a stored revocation list is.

ValueDescription
NONENo list is stored.
FRESHLess than three quarters of the list's validity has passed.
EXPIRINGThree quarters of its validity have passed, or nextUpdate has passed within the grace: push the next list.
STALEnextUpdate and the grace have both passed: REQUIRE_CURRENT no longer counts the list as current.

SemanticPack​

enum

A vocabulary pack this build ships. New packs may be added in a minor release, so a client should tolerate a value it does not know.

ValueDescription
BRICKBrick (pack id brick): buildings, equipment and points.
NGSI_LDThe NGSI-LD core vocabulary (pack id ngsi-ld).
S4BLDGSAREF for buildings (pack id s4bldg).
S4CITYSAREF for smart cities (pack id s4city).
SAREFSAREF core (pack id saref): devices, properties and measurements.
SDM_ENVIRONMENTSmart Data Models, environment domain (pack id sdm-environment).
SDM_PARKINGSmart Data Models, parking domain (pack id sdm-parking).
SDM_STREETLIGHTINGSmart Data Models, street lighting domain (pack id sdm-streetlighting).