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

Version 1 Next »

/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}}
  • 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.