we need to upload a attachment through sync gateway - admin attachment rest api method. Is there a way we can create the document and attach an image in one go? what will be request model and how do we attach an image in this case.
we are able to create a document using PUT and then attach a document but can we do it in 1 call? any example will be really useful.
below works but document internal representation is different format than previous method.
“$Type” : “Transaction”