@extract_id(User, Identity)<EOL><INDENT>def update(self, user, identity):<DEDENT>
return UserIdentityRequest(self).put(self.endpoint.update, user, identity)<EOL>
Update specified identity for the specified user

:param user: User object or id
:param identity: Identity object to be updated.
:return: The updated Identity