Hi,
I have exported a PDF file from Nuxeo as a ZIP through the web ui. I would like to import the ZIP back into Nuxeo using the rest API. When I use the drag-and-drop import functionality of the web ui, I am able to successfully upload the ZIP. The ZIP appears to replace/update the original PDF (with metadata attached) and the PDF can be viewed in the ui. I would like to replicate this functionality with the rest API.
I have been following and tweaking the curl commands on this page, however the result does not match the web ui import functionality. When using the rest API, the ZIP uploads to a new document (does not update the original PDF) and the new document contains the XML and blob files of the ZIP (does not render as a PDF with attached metadata).
I have also been following and tweaking the curl commands on this page, however when I run this command:
curl -X POST -H "Content-Type: application/json+nxrequest" -d '{"params":{"operationId":"FileManager.Import","batchId":"mybatchid"},"context":{"currentDocument":"/default-domain/workspaces/workspace"} }' -u Administrator:Administrator http://localhost:8080/nuxeo/site/automation/batch/execute
I get the following error:
{"entity-type":"exception","status":404,"message":"com.sun.jersey.api.NotFoundException: null for uri: http://localhost:8080/nuxeo/site/automation/batch/execute"}
I would appreciate any help, resources, or guidance. Thanks!