Update entity by ID

Updates the identity entity with the given ID.