Groups
List the groups the user belongs to
Authorizations
Path parameters
userIdstringRequired
The ID of the user
Responses
200
successful operation
application/json
400
Invalid status value
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
Authorizations
Path parameters
userIdstringRequired
The ID of the user
groupIdstringRequired
The ID of the group
Responses
200
successful operation
application/json
Responseobject
400
Invalid status value
application/json
put
PUT //users/{userId}/groups/{groupId} HTTP/1.1
Host: api.ecosuite.io
Authorization: YOUR_API_KEY
Accept: */*
{}
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
400
Invalid status value
application/json
delete
DELETE //users/{userId}/groups/{groupId} HTTP/1.1
Host: api.ecosuite.io
Authorization: YOUR_API_KEY
Accept: */*
{}