API Get Devices

Adriano Miranda 2 years ago

Hello everyone.

The "get devices" api method is not reporting a device when I query the id or uniqueId, but I can find this device when I call the method with the parameter all: true.

HptwhVR.md.png

HptwNKN.md.png

Any clue?

How can I see the API log to try understand whats happening here?

Adriano Miranda 2 years ago

Update: If I move this device from group a to group b, I can find it from api get devices, if I move it back to group a, I cant find it again.

I can find any other device from both group a or group b.

Anton Tananaev 2 years ago

All devices are literally all devices. Other options will only return devices that are linked to the user account.

Adriano Miranda 2 years ago

Thanks for your time Anton.

The point is that I could see other devices from this same group, with this same api user.

Anyway, I removed all groups from that api user and then linked all groups to the user again. Everything is working now.

memesaregood 2 years ago

The "get devices" api method is not reporting a device when I query the id

Sometimes it does this. You can also call GET /api/devices/{id} explicitly, like the web app does it.