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

« Previous Version 2 Current »

/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":"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

 

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