Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JSON Object
Code Block
{
	"user_id":"abcdeString", 	//id of user you want to add/remove from a group
	"community_id":"12345"String" //id of datagroup you want to add/remove a user to
}

 

Example
Code Block
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

...