Query Devices
Query for devices in a number of ways using available filters.
#
RoutesMethod | URI | Name | Summary |
---|---|---|---|
GET | /v1.0/admin/things | Get list of all devices | |
GET | /v1.0/admin/things/count | Get count of all devices | |
GET | /v1.0/admin/things/{thing_id} | Get single user identity | |
POST | /v1.0/admin/things | Create a device | |
PUT | /v1.0/admin/things/{thing_id} | Update a device | |
DELETE | /v1.0/admin/things/{thing_id} | Delete a device |
#
Query ParametersName | Source | Type | Values |
---|---|---|---|
application_id | query | string | |
limit | query | number | |
page | query | number | |
location_id | query | number | |
status | query | number | |
user_id | query | string | |
thing_type | query | string | devices or gateways |
external_id | 'query' | string |
#
Example 1#
Get all Devices for specific User**Example call to query devices for a user (e.g. one of our two users pulled in the previous example). In this case we'll query against robcan...@yopmail.com, user 99e86f3f-87f4-4d7e-9e87-529e16f27438:
Note how we filter by a specific user_id.
Example Response (robcan...@yopmail.com's devices):
#
Example 2Create a Device
Example Response:
#
Example 3Update a Device
Example Response:
#
Example 4Delete a Device
Example Response:
#
Example 5Get a Device by External Id