A shortsheeted bed in which a sheet is folded back on itself halfway down as a practical joke so that the victim cannot get into it.(noun)
Wiktionary.org : Text is available under the Creative Commons Attribution-ShareAlike License
Use "apple-pie bed" in a sentence
"It is a very good knife, with a file in it, as well as a cork-screw and other things – and he did not come down at once, because he was detained by having to make an apple-pie bed for Dicky."