Reactivate a user

This endpoint is only available to organization administrators.

Reactivates a user given their user ID.

POST https://team.webramz.com/api/v1/users/{user_id}/reactivate

Usage examples

#!/usr/bin/env python3

import zulip

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

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

curl -sSX POST https://team.webramz.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

A typical successful JSON response may look like:

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