Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/manager/user/{

...

user_id}
Info

Returns a list of this managers users (GET)

Allows a manager to create users (POST)

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(PUT)

Allows a manager to remove users (DELETE)

Possible Methods

GET POST PUT DELETE

Arguments

...

community_id of the management communityuser_id: (required for PUT/DELETE)
user_id of the user you want to add/delete

JSON Object
Code Block
for POST only
{
  "user":{
    "firstname":"test1",
    "lastname":"burch",
    "phone":"5555555555",
    "email":["cburch@test1.com"]
  },
  "auth":{
    "username":"cburch@test1.com",
    "password":"8675309" 				//unhashed password
  }
}

...

Code Block
curl -b cookies.txt -X GET "http://localhost:8185/manager/user/5367a137e4b0f21816352e9e" > response.txt
curl -b cookies.txt -X PUT "http://localhost:8185/manager/user/5367a137e4b0f21816352e9e" > response.txt
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

...