Reactivate a user

This endpoint is only available to organization administrators.

POST https://gizmo.zulipchat.com/api/v1/users/{user_id}/reactivate

Reactivates a user given their user ID.

Usage examples

#!/usr/bin/env python

import zulip

# The user for this zuliprc file must be an organization administrator
client = zulip.Client(config_file="~/zuliprc-admin")

# Reactivate a user given a user ID.
result = client.reactivate_user_by_id(user_id)
print(result)

curl -sSX POST https://gizmo.zulipchat.com/api/v1/users/12/reactivate \
    -u BOT_EMAIL_ADDRESS:BOT_API_KEY

Parameters

user_id integer required in path

Example: 12

The target user's ID.


Response

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:

{
    "msg": "",
    "result": "success"
}