Skip to content

Commit 04e43b9

Browse files
akashaviatortimabbott
authored andcommitted
api: Implement /users/{user_id}/reactivate api endpoint.
1 parent 59b025d commit 04e43b9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

zulip/zulip/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,20 @@ def deactivate_user_by_id(self, user_id):
11101110
method='DELETE',
11111111
)
11121112

1113+
def reactivate_user_by_id(self, user_id):
1114+
# type: (int) -> Dict[str, Any]
1115+
1116+
'''
1117+
Example usage:
1118+
1119+
>>> client.reactivate_user_by_id(8)
1120+
{'result': 'success', 'msg': ''}
1121+
'''
1122+
return self.call_endpoint(
1123+
url='users/{}/reactivate'.format(user_id),
1124+
method='POST',
1125+
)
1126+
11131127
def update_user_by_id(self, user_id, **request):
11141128
# type: (int, **Any) -> Dict[str, Any]
11151129

0 commit comments

Comments
 (0)