Oms API PUT create user files folder - openmpp/openmpp.github.io GitHub Wiki

PUT create new sub-folder under user files directory on the server.

If user files access enabled in server configuration then user can upload or download files, create or delete folders in user files directory.

This is a beta version and may change in the future.

Method:

PUT /api/files/folder/:path
PUT /api/files/folder?path=...

Arguments:

:path - (required) path to the new sub-directory to be creaded.

If sub-directory already exists then method does nothing and return success.

Call examples:

curl -v -X PUT http://localhost:4040/api/files/folder/dir
curl -v -X PUT http://localhost:4040/api/files/folder?path=dir%2Fsub-dir

Please notice URL query parameters: ?path=dir%2Fsub-dir which is used to specify dir/sub-dir path.

⚠️ **GitHub.com Fallback** ⚠️