Update user's group memberships
Use PUT /v1/accounts/{account-uuid}/users/{email}/groups
to update a user's group memberships.
Endpoint
/v1/accounts/{account-uuid}/users/{email}/groups
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
account-uuid | string | - | path | required |
string | - | path | required | |
body | Rest | - | body | optional |
Request body objects
The RequestBody
object
The object doesn't provide any parameters.
The RestUserGroupForm
object
Element | Type | Description | Required |
---|---|---|---|
groupUuid | string | - | optional |
groupName | string | - | optional |
accountUUID | string | - | optional |
Request body JSON model
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
[
{
"groupUuid": "string",
"groupName": "string",
"accountUUID": "string"
}
]
Response
Response codes
Code | Type | Description |
---|---|---|
204 | Old Groups removed and new ones added successfully | |
400 | ExceptionMessage | Invalid email, account uuid or groups |