401 Unauthorized on Notifications PUT

Hello.
We’re trying to use the notifications REST API from our Trello powerup.
All works fine while getting the notifications, but it seems I can’t mark it as “read”.

My extension has write access over all boards, but it still returns 401 with result “unauthorized notification requested.” while trying to mark all as read or a specific one by id.

I’ve even tried with a new board created by me, on mine notification, but it still says 401.

Here’s an example PUT request I’ve tried.
https://api.trello.com/1/notifications/652573d81908a2a34f8ae3bb/unread?value=true&token=[MYTOKEN]&key=[MYKEY]

Anyone know what can be the issue?
Thanks in advance

1 Like

Hello @Dobomir

I think you’ve just misread the documentation. The parameter is called unread and you set THAT to be true / false, as in:

https://api.trello.com/1/notifications/652573d81908a2a34f8ae3bb?unread=true&token=[MYTOKEN]&key=[MYKEY]