Gap within body

Hello. I have a body and was wondering if it's possible to create a gap within the body at a certain point programmatically? For example, I have a square and create a gap 5 units tall, in the middle of the square (going right across). Anything that collides with the remaining top or bottom half will bounce back, but if it goes through the gap, then no collisions occur. Is there a way of doing this?

Original thread: https://box2d.org/forum/viewtopic.php?t=6902