Hi, thanks for the fast resposonse.
I'm using that documentation to get all the info, all is working but for some reason api/permissions return an error HTTP 405 Method Not Allowed - NotAllowedException (... < OverrideFilter:49 < ...)
.
If I have an userid what is the best or easy wey to get the devices from that user? the devices that that user have access to see.
Thanks
Which API is returning this error exactly? Provide full details, not just the path.
Hi,
when I try this https://demo3.traccar.org/api/permissions
, if I run in my server is the same errop.
If I try other like https://demo3.traccar.org/api/devices
it works fine.
I think only with permissions I can get the devices from a user right ? permissions connections ?
If not I can try to create an attribute on the user with the name of the group and take it from there?
Thanks.
You still haven't answered my question.
Sorry not sure what I need to answer.
Im using the API from the traccar api documentation. doing a get and post only.
I have traccar docker installed and working and trying to get info over the API, devices list, user list, but I want to have from a specific user what devices he can see.
Thanks Anton
doing a get and post only
Make sure you carefully read the API reference again.
After some trys I was able to get it.
Thanks, You can close this
Do you want to share details to help others?
Hi, I have made a post request /api/permissions. I want link only device so i use this payload
{
"userId": 3,
"deviceId": 790
}
a device linked successfully with userid 3, but its returning 204 response is this correct?? or 200 is correct??
It is correct.
Yes, what I did to get the devices from one particular user is
https://server/api/devices?userId=3
This brings the list of all devices where the user have access.
for some reason if the user have a group that not bring all the devices but if the devices are added manually to the user yes.
Thanks.
I have the same issue, if the user have a group of devices this is not working only if the devices are added manually to the user, there is any chance to get the devices from a specific user from the API ?
Thanks
Hi thanks for traccar.
I need to get from the API the devices that one user have access to bring the list of that devices(cars).
For some reason the API for /api/permissons is not working return
HTTP 405 Method Not Allowed - NotAllowedException (... < OverrideFilter:49 < ...)
So not sure how to get that info, thanks.