Remove user from groups
POST {{baseUrl}}/api/v1/users/:user_id/groups/dissociate?groupIds=<list>
This API removes a user from the groups specified.
OAuth Scope
Desk.contacts.UPDATE
Desk.settings.UPDATE
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
helpCenterId | string | ID of the help center from which the groups must be removed | |
groupIds | string | IDs of the groups from which the user must be removed |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"results":[{"success":false,"id":"24073000002957051","errors":{"errorCode":"FORBIDDEN","httpCode":403,"error":"Minimum user should be maintained"}},{"success":false,"id":"24073000002932512","errors":{"errorCode":"FORBIDDEN","httpCode":403,"error":"Restricted"}},{"success":true,"id":"24073000002953232","errors":null}]}