Am I understanding this right that there are no core webhooks for when a task becomes due or a notification is triggered? It feels like I must be missing something obvious?
Yeah there are no webhooks for these events.
@geyser, as you likely already noticed, there is a webhook for getting all notifications for the current user. I use this to check for new notifications every hour.
I had not thought about that! Great idea.
Using n8n, I’m able to grab all my notifications, sort through them, and so on. Able to send notifications to wherever.
The one problem now being that I seem unable to mark a notification as read – intending to do it one at a time as each notification is sent.
I attached a screenshot. This is the only area that I’m getting a hiccup, using the same credentials/Vikunja/API information as used to retrieve notifications.
I tried without the query parameters, and it went exactly the same.
Any ideas?
Thanks for testing this out and posting the screenshot! I was filtering by time, but I like your method of marking notifications as read more. I tried it just now and ran into the same issue, but I think I got it working.
Problem: Using POST on https://vikunja.example.xyz/api/v1/notifications/{id}
always results in marking the notification as unread instead of toggling it like the documentation suggests.
Solution: Add the following body parameter (not query parameter) to mark as read with the current date and time:
- Name:
read
(fixed) - Value:
{{ true }}
(expression, otherwise it sends the stringtrue
instead of the boolean)