List the groups the user belongs to
/users/{userId}/groups
The ID of the user
curl -L \ --url 'https://api.ecosuite.io//users/{userId}/groups' \ --header 'Authorization: YOUR_API_KEY'
{ "groups": { "id": "text", "description": "text" } }
Add the user to a group
/users/{userId}/groups/{groupId}
The ID of the group
curl -L \ --request PUT \ --url 'https://api.ecosuite.io//users/{userId}/groups/{groupId}' \ --header 'Authorization: YOUR_API_KEY'
{}
Remove the user from the group
curl -L \ --request DELETE \ --url 'https://api.ecosuite.io//users/{userId}/groups/{groupId}' \ --header 'Authorization: YOUR_API_KEY'