code: def update(self, user, identity):
          
          return UserIdentityRequest(self).put(self.endpoint.update, user, identity)
docs: Update specified identity for the specified user
  
          :param user: User object or id
          :param identity: Identity object to be updated.
          :return: The updated Identity