api with &deviceId=2

ThomasF6 years ago

hi,

any idea why &deviceId=2 will not give me data using the api? in the web-frontend all is fine.

thank you

thomas

AsifB6 years ago

It worked for me. I think the syntax is “id=2” not deviceID.

For devices assigned to a user, it is “userId=2”, if that is what you are trying.

ThomasF6 years ago

your right .. whyever the next device did not get 2 it got 5 as id.
is it possible to fetch all deviseIDs in one run?
Thank you for your help!

AsifB6 years ago

Yes you can. I think it is ?all=true

Need admin rights.

ThomasF6 years ago

thank you!