Device
Device Management API.
When devices are initialized with the Ioto agent, they will "register" with the Builder service using their device ID (ClaimID) at https://admin.embedthis.com/api. The device registration API is part of the Builder API. See Device Registration.
Once registered, the device then remains under the management of the Builder until it is "claimed" by a user for management using the "Device Claim" API. When claimed, the device is redirected to the device cloud when it next invokes the "register" API.
Get
Endpoint
1 |
|
Authorized User Role
1 |
|
Request Body
Field | Type | Required | Role | Notes |
---|---|---|---|---|
id | string | yes | Device Claim ID. | |
accountId | string | owner | Manager account ID. Required if using CloudAPI token. |
Response
Field | Type | Notes |
---|---|---|
accessed | date | When the device was last accessed. |
accountId | string | Owning manager account ID. |
created | date | When the device was first claimed. |
id | string | Device Claim ID. |
product | string | Builder Product name. |
productId | string | Builder Product ID. |
test | boolean | Device is for test purposes. |
version | string | Firmware version. |
checked | string | Checked version. |
Claim
Endpoint
1 |
|
Authorized User Role
1 |
|
Request Body
Field | Type | Required | Notes |
---|---|---|---|
id | string | yes | Device claim ID. |
Response
The claimed device.
Field | Type | Notes |
---|---|---|
accessed | date | When the device was last accessed. |
accountId | string | Owning manager account ID. |
created | date | When the device was first claimed. |
id | string | Device Claim ID. |
product | string | Builder Product name. |
productId | string | Builder Product ID. |
test | boolean | Device is for test purposes. |
version | string | Firmware version. |
checked | string | Checked version. |
Find
Find matching devices filtered by matching properties.
Endpoint
1 |
|
Authorized User Role
1 |
|
Request Body
Field | Type | Role | Notes |
---|---|---|---|
id | string | Device Claim ID. | |
accountId | string | owner | Manager account ID. Required if using CloudAPI token. |
productId | string | Product registration ID from the Builder product list. |
Query String Options
Field | Type | Notes |
---|---|---|
filter | string | Full text string to filter for. |
next | object | Pagination token for the next page. |
prev | object | Pagination token for the previous page. |
limit | number | Number of items to retrieve. |
index | string | Database index to use. |
exists | boolean | Set to true to require the item exists, otherwise set to null to perform an upsert. |
Response
Paged response.
Field | Type | Notes |
---|---|---|
data | array | An array of devices owned by the user. |
next | string | Paged cursor to use for the next page of items. |
prev | string | Pages cursor to use for the previous page of items. |
Device
An array of Device items.
Field | Type | Notes |
---|---|---|
accessed | date | When the device was last accessed. |
accountId | string | Owning manager account ID. |
created | date | When the device was first claimed. |
id | string | Device Claim ID. |
product | string | Builder Product name. |
productId | string | Builder Product ID. |
test | boolean | Device is for test purposes. |
version | string | Firmware version. |
checked | string | Checked version. |
Remove
Endpoint
1 |
|
Authorized User Role
1 |
|
Request Body
Field | Type | Required | Notes |
---|---|---|---|
id | string | yes | Device claim ID. |
Response
Field | Type | Notes |
---|---|---|
accessed | date | When the device was last accessed. |
accountId | string | Owning manager account ID. |
created | date | When the device was first claimed. |
id | string | Device Claim ID. |
product | string | Builder Product name. |
productId | string | Builder Product ID. |
test | boolean | Device is for test purposes. |
version | string | Firmware version. |
checked | string | Checked version. |