Docs: Update API code blocks
The code blocks for each API call on these pages did not specify a code style. Most needed to be plaintext, but I also found a couple of places that had extra line breaks that weren't needed. A couple needed to be 'shell.'
Showing with 110 additions and 112 deletions