I can't figure out how executeAsModal is working (404 errors)

Read through this post. I put a link to a sample API 2 plugin in the post. You will just need to rename the ccx as zip to view it. Later on in the post, I also replied with how to do the suspendHistory.