...
To determine the <documentPath>, please see below. The <docName> is the name that the new document has as per the creation of the container above.
Note:
For the above document creation to work, <documentPath> must exist. As the case may be, you may require creation of the folder path as follows:
Code Block |
---|
curl \
-H "authorization: Basic <...>" \
-H "Content-Type: application/json" \
-d "{\"params\":{\"entity-type\":\"document\",\"type\":\"Folder\",\"name\":\"<folderName>\",\"input\":\"/default-domain/workspaces/Patricia/<folderPath>\"}" \
-X POST http://<nuxeoserverip>:<nuxeoport>/nuxeo/api/v1/automation/Document.Create |
whereby <folderPath>/<folderName> will be created. Note that the folder tree needs to be build recursively (i.e. <folderPath> must also exist).
Deleting a document from the DMS
...