REST API: remove channel announcement

Hello!

I’m currently figuring out how to remove an announcement from a channel with the api method documented here: https://rocket.chat/docs/developer-guides/rest-api/channels/setannouncement/.

I have no problems setting an announcement, but unfortunately I am unable to remove it again: setting the value for the ‘announcement’ argument to an empty string, null or false value doesn’t work - the server responds with status code 400 (Bad Request) and error message ‘The bodyParam “announcement” is required’.

I can remove the announcement without any problems in the rocket.chat electron client by submitting an empty value.

Am I missing something or is this just not yet implemented in the REST API?

Thanks!

Server version: 0.73.2

This has been fixed here.

1 Like

@marcos.defendi @dumitru Thank you!

1 Like