def update(self, **kwargs):
response = self._requester.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(self.group_id, self.id),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return GroupMembership(self._requester, response.json())<EOL>
Accept a membership request, or add/remove moderator rights.

:calls: `PUT /api/v1/groups/:group_id/memberships/:membership_id \
<https://canvas.instructure.com/doc/api/groups.html#method.group_memberships.update>`_

:rtype: :class:`canvasapi.group.GroupMembership`