Re: [MarkLogic Dev General] Adding PDF to an existing json document using Patch

2016-08-23 Thread Erik Hennum
Hi, Shiv: A patch request returns a 204 if none of the operations match on the patched document. That's an indication to check the paths in the operations to make sure they match the structure and vocabulary of the target JSON document. The patch from your earlier post would change this docume

Re: [MarkLogic Dev General] Adding PDF to an existing json document using Patch

2016-08-22 Thread Erik Hennum
16 11:01 AM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Adding PDF to an existing json document using Patch Hi Erik Hennum If I go with PUT, it is replacing the entire document,which is not acceptable. How to add json document+pdf in one document ? I used below appro

[MarkLogic Dev General] Adding PDF to an existing json document using Patch

2016-08-22 Thread Shiv Shankar
Hi Erik Hennum If I go with PUT, it is replacing the entire document,which is not acceptable. How to add json document+pdf in one document ? I used below approach 1. Added a PDF as a separate document and tried adding that uri as part of PATCH to referring document, but getting message 204 curl