Manager / Datagroup
/manager/datagroup/{user_id}/{community_id}
Returns a list of this managers datagroups they can add users to (GET)
Allows a manager to add a user to a datagroup (POST)
Allows a manager to remove a user from a datagroup (DELETE)
Note: the user_id and community_id can either be given on the url or in the payload, the url arguments will always take precedence
Possible Methods
GET POST DELETE
Arguments
n/a
JSON Object
{ "user_id":"String", //id of user you want to add/remove from a group "community_id":"String" //id of datagroup you want to add/remove a user to }
Â
Example
curl -b cookies.txt -X GET "http://localhost:8185/manager/datagroup" > response.txt curl -b cookies.txt -X POST -d '{ "user_id":"abcde", "community_id":"12345" }}' "http://localhost:8185/manager/datagroup" > response.txt curl -b cookies.txt -X DELETE -d '{ "user_id":"abcde", "community_id":"12345" }}' "http://localhost:8185/manager/datagroup" > response.txt curl -b cookies.txt -X DELETE "http://localhost:8185/manager/datagroup/abcde/12345" > response.txt
Â
Example Response
curl -b cookies.txt -X POST -d '{ "user_id":"abcde", "community_id":"12345" }}' "http://localhost:8185/manager/datagroup" > response.txt
Â
 {"response":{"action":"Manager/Datagroup","success":true,"message":"Added user to manager group successfully","time":0}}