You will need to add a print pause at a height of 2,6mm (or at the 13th layer if you use 0,2mm layer height), where you can place (just lay down, press or glue) the magnets in the case. Then you can continue the print.
Here you can see a video of how to set a print pause in Cura.
The author marked this model as their own original creation.