Add user to groups
POST {{baseUrl}}/api/v1/users/:user_id/groups/associate?groups=<list>
This API adds a user to 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 validated | |
groups | string | IDs of the groups to which the user must be added |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"results":[{"success":true,"id":"24073000002957051","errors":null},{"success":false,"id":"24073000002793019","errors":{"errorCode":"FORBIDDEN","httpCode":403,"error":"Restricted"}},{"success":false,"id":"24073000002723212","errors":{"errorCode":"FORBIDDEN","httpCode":403,"error":"Restricted"}},{"success":false,"id":"24073000002732252","errors":{"errorCode":"FORBIDDEN","httpCode":403,"error":"Restricted"}}]}