Inverse spectral analysis with partial information on the potential. III. Updating boundary conditions