public interface WorkspaceFolderResources
his interface provides methods to access Folder resources that are associated to a workspace object.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
Folder |
createFolder(long workspaceId,
Folder folder)
Create a folder in the workspace.
|
PagedResult<Folder> |
listFolders(long workspaceId,
PaginationParameters parameters)
List folders of a given workspace.
|
PagedResult<Folder> listFolders(long workspaceId, PaginationParameters parameters) throws SmartsheetException
List folders of a given workspace.
It mirrors to the following Smartsheet REST API method: GET /workspace/{id}/folders
workspaceId - the workspace idparameters - the pagination parametersIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationFolder createFolder(long workspaceId, Folder folder) throws SmartsheetException
Create a folder in the workspace.
It mirrors to the following Smartsheet REST API method: POST /workspace/{id}/folders
workspaceId - the workspace idfolder - the folder to createIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationCopyright © 2014–2017 Smartsheet. All rights reserved.