Removing all notifications
I have an objective of removing notifications sent to a specific subscriber. I'm currently testing the following method:
However, when I attempt to use this method, I receive an
AxiosError
with the message 'Request failed with status code 400.' It appears that the notifications I want to remove have _feedId
set to null
.
Can you please provide guidance on how to successfully achieve my goal of removing these notifications?1 Reply
Solved:
The removeAllNotifications method accepts an object with optional properties. One of these properties is feedId, which is the identifier for a specific feed of notifications.
To remove notifications that don't have a specific _feedId set (i.e.,_feedId is null), you can simply omit the feedId property when making this call.
By not including the feedId parameter in the function call, you are instructing the system to remove all notifications regardless of their _feedId value.