Could someone post an example of posting an attachment to a subspace with HTML comments? I have got the data, but cannot figure out how to post. I have read the v2 documentation but am still unsure how to go about issuing a curl command to post a file from my server into a discussion in Jive. Thanks!

OK... It's been awhile since I looked at v2, but iirc, it's a two step process. The first thing you do is use the attachment service. If this is successful, you get a 201 back that has the location of the attachment. you then use this URL when you create the document.

It's a bit of a painful process, but you can search Google for the base url of the REST api v2 documentation and view Google's cached version of the page. You can grab specific URLs from that cached page and repeat the process until you find what you need.

If you have developer tools in your browser, try posting a document with an attachment using the UI. Take a look at the requests sent from the browser - most things you do in the UI wind up making RESTful calls. I've had a lot of luck with this technique in the past.