If your endstop is broken and you don't want to disassamble and assemble, you can use that endstop. It's for an 8mm shaft and an M3 screw. I have printed the endstop with an 0.35mm nozzle and 0.2mm layer pla. It fits perfect.
If made it with FreeCAD (OrcaStopper3.fcstd).