/manager/user/{community_id}/{user_id}
Allows a manager to add/remove users.
Note: the community_id of the group must be passed in because this user could be a member of 2 managers, and will only be removed from this managers groups
Possible Methods
POST DELETE
Arguments
community_id: (required)
community_id of the management community
user_id: (required for DELETE)
user_id of the user you want to delete
JSON Object
{ "user":{ "firstname":"test1", "lastname":"burch", "phone":"5555555555", "email":["cburch@test1.com"] }, "auth":{ "username":"cburch@test1.com", "password":"8675309" //unhashed password } }
Example
curl -b cookies.txt -X POST -d '{ "user":{ "firstname":"test1", "lastname":"burch", "phone":"5555555555", "email":["cburch@test1.com"] }, "auth":{ "username":"cburch@test1.com", "password":"8675309" }}' "http://localhost:8185/manager/user/5367a137e4b0f21816352e9e" > response.txt curl -b cookies.txt -X DELETE "http://localhost:8185/manager/user/5367a137e4b0f21816352e9e/5357cc8be4b0a329baa475bf" > response.txt
Example Response
curl -b cookies.txt -X POST -d '{ "user":{ "firstname":"test1", "lastname":"burch", "phone":"5555555555", "email":["cburch@test1.com"] }, "auth":{ "username":"cburch@test1.com", "password":"8675309" }}' "http://localhost:8185/manager/user/5367a137e4b0f21816352e9e" > response.txt
{"response":{"action":"Manager/User","success":true,"message":"Created user successfully","time":0}}
0 Comments