Enable/reactivate a deactivated user
This endpoint is used to re-enable a deactivated user.
POST /openapi/v1/users/{user_id}/enable
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
user_id |
string |
ID of the user object being enabled. |
Response object: Returns the reactivated user object associated with the specified ID.
Sample python code
user_id = '5ce480db497d4f1ca1fc2b2b'
resp = restclient.post('/users/%s/enable' % user_id)