'Edit the user\'s membership.
:param str state: (required), the state the membership should be in.
Only accepts ``"active"``.
:returns: whether the edit was successful or not
:rtype: bool'

@requires_auth
def edit(self, state):

    if (state and (state.lower() == u'active')):
        data = dumps({u'state': state.lower()})
        json = self._json(self._patch(self._api, data=data))
        self._update_attributes(json)
        return True
    return False
