Many entities have an Id, consequently the need of filtering for a specific Id might be useful.
Field Type: Id
Filters Available: exact (=
), in
exact
Filters for an exact match of the id provided.
GET https://industrial.api.ubidots.com/api/v2.0/devices/?id=bae24901a92daa61ddc90626
//Returns Array 'results' with a device object matching the Id
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": "5ece6b361d84720e426b3832",
...
}
]
}
in
Filters for all matching items matching the Ids provided
GET https://industrial.api.ubidots.com/api/v2.0/devices/?id__in=bae24901a92daa61ddc90626,4e1cb1e6d8b69d53afec
//Returns array 'results' with all matching device objects
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": "5ece6b361d84720e426b3832",
...
},
{
"id": "5ecabf7d73efc37337fdcee8",
...
}
]
}