How to add attachments?

It may not be an error, as the request doesn’t match the API docs. Note above I forked discussion off to the Sync Gateway category.