Hi, I am getting when I do patch update of binary data to an existing json object.
url -v -X POST --basic --user user:pwd --data-binary '@mydoc.pdf' -i -H "Content-type: application/binary" -H "X-HTTP-Method-Override: PATCH" ' http://localhost:8004/LATEST/documents?uri=/test/899' Error below::: {"errorResponse":{"statusCode":400, "status":"Bad Request", "messageCode":"RESTAPI-INVALIDREQ", "message":"RESTAPI-INVALIDREQ: (err:FOER0000) Invalid request: reason: patch is not <rapi:patch> or JSON patch object for uri: /test/899"}} Any advice or is there any other way like apart from insert binary and put that uri as patch to existing document?
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general