Connections for all users

smsoousa20 days ago

Hello everybody! I know that traccar can link a notification to all devices in an account, now can I link a notification to all users? Imagine me needing to delete notifications to recreate, depending on the number of users, it would take days to link notifications from one to a user. If there was a way to link to all users that would be great, if there is. If anyone can give a tip and if it is possible to do it, I would greatly appreciate the information.

Anton Tananaev20 days ago

You can use API to do a bulk linking.

smsoousa20 days ago

Could you tell me what would be the ideal endpoint for this? I looked at the documentation but didn't find anything specific.

Anton Tananaev20 days ago
POST /api/permissions/bulk

With something like this in the payload:

[
{userId: 1, notificationId: 1},
{userId: 2, notificationId: 1},
{userId: 3, notificationId: 1}
]
smsoousa20 days ago

Thanks for that! I'll try to do something in PHP.