In situ observation of a reversible single-crystal-to-single-crystal apical-ligand-exchange reaction in a hydrogen-bonded 2D coordination network.