Groups

List the groups the user belongs to

get

List the groups the user belongs to

Authorizations
Path parameters
userIdstringRequired

The ID of the user

Responses
200

successful operation

application/json
get
GET //users/{userId}/groups HTTP/1.1
Host: api.ecosuite.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "groups": {
    "id": "text",
    "description": "text"
  }
}

Add the user to a group

put

Add the user to a group

Authorizations
Path parameters
userIdstringRequired

The ID of the user

groupIdstringRequired

The ID of the group

Responses
200

successful operation

application/json
Responseobject
put
PUT //users/{userId}/groups/{groupId} HTTP/1.1
Host: api.ecosuite.io
Authorization: YOUR_API_KEY
Accept: */*
{}

Remove the user from the group

delete

Remove the user from the group

Authorizations
Path parameters
userIdstringRequired

The ID of the user

groupIdstringRequired

The ID of the group

Responses
200

successful operation

application/json
Responseobject
delete
DELETE //users/{userId}/groups/{groupId} HTTP/1.1
Host: api.ecosuite.io
Authorization: YOUR_API_KEY
Accept: */*
{}