AnsweredAssumed Answered

Delete Global Announcement via API?

Question asked by Troy Carroll on Nov 19, 2019
Latest reply on Nov 21, 2019 by Troy Carroll

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.

Outcomes