Where should the Z-Probe limit switch be connected on RAMPS?

Where should the Z-Probe limit switch be connected on RAMPS?

Adding support for auto bed leveling to my printer,
I searched the net, can only find connection diagrams for servo, but not for z-pobe switch

If you’re talking about the endstop switch, I believe I added mine to Z min.

I already have one z min (z endstop), should I tie them both. or after setting up auto bed levelling there is no need of z limit switch

Usually with auto bed leveling, you’ll replace the min with the bed level. If you want, you can move the other endstop to be a max endstop.

Thanks @Justin_Nesselrotte1 and @Ryan_Vaughan , for clarifying me.