File Management APIs Directory Resource
This service provides operations for managing directories in the repository.
Creates a new folder with the specified name.
Example Request:
PUT pentaho/api/repo/dirs/home:admin:newfoldercURL Example:
curl -X PUT \
"http://localhost:8080/pentaho/api/repo/dirs/home:admin:newfolder" \
-H "Authorization: Basic YWRtaW46cGFzc3dvcmQ="The path from the root folder to the root node of the tree to return usingcolon characters in place of / or \ characters. To clarify /path/to/file, the encoded pathId would be :path:to:file.
home:admin:newfolderSuccessfully created folder.
No content
Forbidden. Cannot create root level folder or contains illegal characters.
Path already exists.
Server Error.
PUT /repo/dirs/{pathId} HTTP/1.1
Host:
Authorization: Basic username:password
Accept: */*
No content
Determines whether a current user has permission to see the folder or not.
Example Request:
GET pentaho/api/repo/dirs/home:admin:folder/isVisiblecURL Example:
curl -X GET \
"http://localhost:8080/pentaho/api/repo/dirs/home:admin:folder/isVisible" \
-H "Authorization: Basic YWRtaW46cGFzc3dvcmQ="The path from the root folder to the root node of the tree to return using colon characters in place of / or \ characters. To clarify /path/to/file, the encoded pathId would be :path:to:file.
home:admin:folderSuccessfully returns a boolean value, either true or false
String "true" if the folder is visible to the current user, or "false" otherwise.
GET /repo/dirs/{pathId}/isVisible HTTP/1.1
Host:
Authorization: Basic username:password
Accept: */*
Successfully returns a boolean value, either true or false
trueGets the default save location for the specified path.
Example Request:
GET pentaho/api/repo/dirs/home:admin:folder/defaultLocationcURL Example:
curl -X GET \
"http://localhost:8080/pentaho/api/repo/dirs/home:admin:folder/defaultLocation" \
-H "Authorization: Basic YWRtaW46cGFzc3dvcmQ="The path from the root folder to the root node of the tree to return using colon characters in place of / or \ characters. To clarify /path/to/file, the encoded pathId would be :path:to:file.
home:admin:folderSuccessfully returns a default open/save location
Path for a default save location
/publicGET /repo/dirs/{pathId}/defaultLocation HTTP/1.1
Host:
Authorization: Basic username:password
Accept: */*
Successfully returns a default open/save location
/publicWas this helpful?

