As a neutral power, Switzerland had obligations under international law to hold any military personnel of the belligerent powers for the duration of the war. The conditions varied greatly, and in some cases were infamously harsh, such as the internee camp at Wauwillermoos. I've written a bit more about it here which may be of interest.