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