A way to automatically upload a folder structure zip file | Ben Bimber | 2015-08-28 07:34 |
Status: Closed | ||
Hi Alex, This is not really an official solution, but we have used curl in a script to hit the folder import action: curl -c myCookie.txt -u ${USERNAME} "${HOST}/login/${CONTAINER_PATH}/login.view" TOKEN=`cat myCookie.txt | grep 'X-LABKEY-CSRF' | cut -f 7` curl -b myCookie.txt --form X-LABKEY-CSRF=${TOKEN} --form folderZip="@${FILE}" --form tabId=import "${HOST}/admin/${CONTAINER_PATH}/folderManagement.view" rm myCookie.txt As noted, this isnt a public LK API, so I presume subject to change without notice. It will let you script folder import though. |
||