Help regarding user and device api

Ashok Chandra 2 years ago

I want view assigned users for selected device or assigned devices for users.

This functionality already there or not. If not exist so how can we make this.

Anton Tananaev 2 years ago

Assigned devices you should be able to get directly from the API. Check the official app.

Ashok Chandra 2 years ago

I have checked the docs, api/devices/ returns all the devices for current logged in user.

Supose I am admin or manager and created 3 users and all 3 users have 5 device so I want view for devices for user by just passing the userid perameter.

Anton Tananaev 2 years ago

Are you passing the parameter to /api/devices?

Ashok Chandra 2 years ago

No, I am using /api/devices/ or api/devices/{id}/

There is any document for api perameter please share link

Anton Tananaev 2 years ago

Wait. You haven't checked the official API documentation before asking?

Ashok Chandra 2 years ago

its my mistake, I wrongly passing the parameters. now its working, i can view the connected devices for user.

I want also view the connected users with device. this is possible with exiting api? or not.

Anton Tananaev 2 years ago

Not directly.

Ashok Chandra 2 years ago

ok thanks. One last question
this question is pending, please suggest.
https://www.traccar.org/forums/topic/help-regarding-apimedia/