Hey, I've been trying to delete attachments by using the couchbase lite api <http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/document/delete---db---doc---attachment-/index.html> but no luck and not sure what I am doing wrong.
I've been using postman to do this (I create attachments using postman and that works fine). Heres what I do... DELETE https://{domain}/{bucket}/{doc_id}/{attachment_name}?rev=1-SomeRevisionIdHere Headers: Content-Type: image/jpeg I've also tried it adding the header If-Match: 1-SomeRevisionIdHere instead of the param rev in the url. On the sync gateway side I see it getting hit.. 22:58:16.647588 HTTP: #035: DELETE /{bucket}/{doc_id}/{attachment_name}?rev=1-SomeRevisionIdHere But on postman I get a 405 error and the body is.. { error: "Method Not Allowed" reason: "" } Also the attachment is not deleted. Does any one have any idea what I am doing wrong? Thanks! Jason -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/3e468ed1-9a6d-4fb7-82dc-5f0500aeeba0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
