/manager/community
Allows a manager to add/remove users in a community
Possible Methods
POST DELETE
Arguments
n/a
JSON Object
{ String user_id; //id of user to add to community_id }
Example
curl -b cookies.txt -X POST -d '{"user_id":"5357cc8be4b0a329baa475bf"}' "http://localhost:8185/manager/community" > response.txt curl -b cookies.txt -X DELETE -d '{"user_id":"5357cc8be4b0a329baa475bf"}' "http://localhost:8185/manager/community" > response.txt
Example Response
curl -b cookies.txt -X POST -d '{"user_id":"5357cc8be4b0a329baa475bf"}' "http://localhost:8185/manager/community" > response.txt
{ "response": { "action": "Manager/Community", "success": true, "message": "Added user to community successfully", "time": 0 } }
Add Comment