/manager/datagroup
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)
Possible Methods
GET POST DELETE
Arguments
n/a
JSON Object
{ "user_id":"abcde", "community_id":"12345" }
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
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}}
0 Comments