POST https://kent.zulip.conventionofstates.com/api/v1/users/me/alert_words
Add words (or phrases) to the user's set of configured alert words.
Usage examples
Python
curl
#!/usr/bin/env python3importzulip# Pass the path to your zuliprc file here.client=zulip.Client(config_file="~/zuliprc")# Add words (or phrases) to the user's set of configured alert words.result=client.add_alert_words(words)print(result)
An array of strings to be added to the user's set of configured
alert words. Strings already present in the user's set of alert words
already are ignored.
Alert words are case insensitive.
Response
Return values
alert_words: (string)[]
An array of strings, where each string is an alert word (or phrase)
configured by the user.
Example response(s)
Changes: As of Zulip 7.0 (feature level 167), if any
parameters sent in the request are not supported by this
endpoint, a successful JSON response will include an
ignored_parameters_unsupported array.