Remove alert words

DELETE https://cs-a1111-2023s.zulip.aalto.fi/api/v1/users/me/alert_words

Remove words (or phrases) from the user's set of configured alert words.

Alert words are case insensitive.

Usage examples

#!/usr/bin/env python3

import zulip

# Pass the path to your zuliprc file here.
client = zulip.Client(config_file="~/zuliprc")

# Remove words (or phrases) from the user's set of configured alert words.
word = ["foo"]

result = client.remove_alert_words(word)
print(result)

curl -sSX DELETE https://cs-a1111-2023s.zulip.aalto.fi/api/v1/users/me/alert_words \
    -u BOT_EMAIL_ADDRESS:BOT_API_KEY \
    --data-urlencode 'alert_words=["foo"]'

Parameters

alert_words (string)[] required

Example: ["foo"]

An array of strings to be removed from the user's set of configured alert words. Strings that are not in the user's set of alert words are ignored.


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.

A typical successful JSON response may look like:

{
    "alert_words": [
        "bar",
        "natural",
        "illustrious"
    ],
    "msg": "",
    "result": "success"
}