Custom Attributes
Attributes can be added to Users, Devices and Services. Attributes can have overrides defined by context. This is used for your own custom metadata.
Add/Update Attribute
Parameter | Data Type | Description |
---|---|---|
name | String | required Name of attribute |
value | String | required Value of attribute
|
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 |
Query Response
Category and Status Fields
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
Remove Attribute
Set Multiple Attributes
This method shows how to update multiple attributes on a single device by passing in a JSON formatted variables.
Retrieve Attributes
Query Response
Last updated