This pin ist designed for a magnet with 10mm diameter and 2.75 mm heigth. Print with a little support for the spot of the magnet.
OpenSCAD file included, for other magnets, you have to play with the heigh parameter to make it looking good.
The pin on the picture was printed with PLA and 0.16 mm layers.