URL | Requires Auth | HTTP Method |
|
|
|
Argument | Example | Required | Description |
|
| Required | The value of the active status. |
|
| Required | The user's id to be changed. |
|
| Optional Default: | Allows user to be deactivated even if it is the last owner of a room. |
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \-H "X-User-Id: aobEdbYhXfu5hkeqG" \-H "Content-type:application/json" \http://localhost:3000/api/v1/users.setActiveStatus \-d '{"activeStatus": false, "userId": "5HmCfpoB7jp2uibTC" }'
{"user": {"_id": "jJNyu4BQFqdgEcqnR","active": false},"success": true}
Version | Description |
3.7.0 | Added |
0.75.0 | Added. |