Is it possible to upload folder structures (with files in them) via API?
Is it possible to upload folder structures (with files in them) via API?
hi Andrew Quinn,
I try with Upload Folder API: https://collaborate.highq.com/sitepoint/showSwaggerUI.action#/Document%20Resource%20APIs/insertFolderStructure
I want to POST folder include subfolders and files. but I just see "name" from the suggestion of body.
How to push "filename, file content" to body?
thanks you,
Hi Ha Nguyen Danh, this endpoint is only for creating a tree structure of folders only.
You will have to then subsequently populate the folders with the files you want, using the usual Add File API. I believe this folder structure API endpoint was added because of the Workflow Action "Add Folder" where you can add a shallow folder structure as part of the action.
It's a shame that we can't upload a ZIP file containing a "repository" of folders and files, leveraging the same process that the front-end makes possible through the "Add zipped files" option.