Delete Global Announcement via API?

Jump to solution
troy-carroll
Community Explorer

For reasons, I want to know if it is possible to delete a global announcement via API? I have a script that will generate a global announcement (Account Notifications API), and I store and can reference each announcement's unique ID. But is there a way to remove an announcement for all users other than using the "end_at" field? 

The delete action of the Account Notifications API only seems to hide the announcement for a single user. I want to hide it for ALL users, or just delete the message entirely.

DELETE /v1/accounts/{account_id}/account_notifications/{id}

Surely there is a way to delete a global announcement via API, right? My only alternative that I can think of right now is to use the "update a global notification" (PUT) to change the role it is assigned to and maybe only show it to admins or a 'dummy' role, but that seems clunky.

Labels (1)
1 Solution
robotcars
Community Champion

I tried to track this down through the network tab, and then had to ask on the IRC channel as I couldn't duplicate it via API. The answer was...

It's not mapped in the api.

View solution in original post