Custom Attributes
Last updated
Last updated
Attributes can be added to Users, Devices and Services. Attributes can have overrides defined by context. This is used for your own custom metadata.
Parameter | Data Type | Description |
---|---|---|
Query Response
We have reserved names of remote.it Device attributes which will be displayed on the Web Portal and Desktop UIs. These attributes are for Category and Status fields. The UI currently can display Category A-E and Status A-E. These must be set against the Device ID (also known as the Bulk Service's "Service ID" of the remote.it Device). The convention for the name is $remoteit.categoryA for category attributes and $remoteit.statusA for status attributes. The convention is the same for removing and retrieving these attributes.
Example Category Mutation
This method shows how to update multiple attributes on a single device by passing in a JSON formatted variables.
Query Response
name
String
required
Name of attribute
value
String
required
Value of attribute
null
to remove
serviceId
String
required
The userId, deviceId or serviceId the attribute is assigned to
context
String
defined context of the attribute. Allows for override of attribute value for the same name