Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

/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
    }
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.