Classic APIs
ClassicGroupsApi
updateGroupMemberRole

updateGroupMemberRole

Changes a members' role in a group.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group
userIdIdentifierThe id of the user to change role for.
roleIdIdentifierThe id of the role.

Example

const { data: success } = await ClassicGroupsApi.updateGroupMemberRole({
  groupId: 5850082,
  userId: 2655994471,
  roleId: 38354760,
}); 

Endpoint

PATCH /v1/groups/{groupId}/users/{userId}