public interface SheetResources
This interface provides methods to access Sheet resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
SheetAttachmentResources |
attachmentResources()
Return the AttachmentResources object that provides access to attachment resources associated with
Sheet resources.
|
SheetAutomationRuleResources |
automationRuleResources()
Return the SheetAutomationRuleResources object that provides access to automation rule resources
associated with Sheet resources.
|
SheetColumnResources |
columnResources()
Return the SheetColumnResources object that provides access to Column resources associated with Sheet resources.
|
SheetCommentResources |
commentResources()
Return the SheetCommentResources object that provides access to discussion resources associated with
Sheet resources.
|
Sheet |
copySheet(long sheetId,
ContainerDestination containerDestination,
EnumSet<SheetCopyInclusion> includes)
Creates a copy of the specified sheet.
|
Sheet |
copySheet(long sheetId,
ContainerDestination containerDestination,
EnumSet<SheetCopyInclusion> includes,
EnumSet<CopyExclusion> excludes)
Creates a copy of the specified sheet.
|
Sheet |
createSheet(Sheet sheet)
Create a sheet in default "Sheets" collection.
|
Sheet |
createSheetFromTemplate(Sheet sheet,
EnumSet<SheetTemplateInclusion> includes)
Create a sheet (from existing sheet or template) in default "Sheets" collection.
|
Sheet |
createSheetInFolder(long folderId,
Sheet sheet)
Create a sheet in given folder.
|
Sheet |
createSheetInFolderFromTemplate(long folderID,
Sheet sheet,
EnumSet<SheetTemplateInclusion> includes)
Create a sheet (from existing sheet or template) in given folder.
|
Sheet |
createSheetInWorkspace(long workspaceId,
Sheet sheet)
Create a sheet in given workspace.
|
Sheet |
createSheetInWorkspaceFromTemplate(long workspaceId,
Sheet sheet,
EnumSet<SheetTemplateInclusion> includes)
Create a sheet (from existing sheet or template) in given workspace.
|
UpdateRequest |
createUpdateRequest(long sheetId,
MultiRowEmail email)
Deprecated.
|
SheetCrossSheetReferenceResources |
crossSheetReferenceResources()
Return the CrossSheetReferenceResources object that provides access to cross sheet reference resources
associated with Sheet resources.
|
void |
deleteSheet(long id)
Delete a sheet.
|
SheetDiscussionResources |
discussionResources()
Return the SheetDiscussionResources object that provides access to discussion resources associated with
Sheet resources.
|
SheetFilterResources |
filterResources()
Return the SheetFilterResources object that provides access to sheet filter resources
associated with Sheet resources.
|
SheetPublish |
getPublishStatus(long id)
Get the status of the Publish settings of the sheet, including the URLs of any enabled publishings.
|
Sheet |
getSheet(long id,
EnumSet<SheetInclusion> includes,
EnumSet<ObjectExclusion> excludes,
Set<Long> rowIds,
Set<Integer> rowNumbers,
Set<Long> columnIds,
Integer pageSize,
Integer page)
Get a sheet.
|
Sheet |
getSheet(long id,
EnumSet<SheetInclusion> includes,
EnumSet<ObjectExclusion> excludes,
Set<Long> rowIds,
Set<Integer> rowNumbers,
Set<Long> columnIds,
Integer pageSize,
Integer page,
Integer ifVersionAfter)
Get a sheet.
|
Sheet |
getSheet(long id,
EnumSet<SheetInclusion> includes,
EnumSet<ObjectExclusion> excludes,
Set<Long> rowIds,
Set<Integer> rowNumbers,
Set<Long> columnIds,
Integer pageSize,
Integer page,
Integer ifVersionAfter,
Integer level)
Get a sheet.
|
void |
getSheetAsCSV(long id,
OutputStream outputStream)
Get a sheet as an Excel file.
|
void |
getSheetAsExcel(long id,
OutputStream outputStream)
Get a sheet as an Excel file.
|
void |
getSheetAsPDF(long id,
OutputStream outputStream,
PaperSize paperSize)
Get a sheet as a PDF file.
|
int |
getSheetVersion(long id)
Get a sheet version.
|
Sheet |
importCsv(String file,
String sheetName,
Integer headerRowIndex,
Integer primaryRowIndex)
Imports a sheet.
|
Sheet |
importCsvInFolder(long folderID,
String file,
String sheetName,
Integer headerRowIndex,
Integer primaryRowIndex)
Imports a sheet in given folder.
|
Sheet |
importCsvInWorkspace(long workspaceId,
String file,
String sheetName,
Integer headerRowIndex,
Integer primaryRowIndex)
Imports a sheet in given workspace.
|
Sheet |
importXlsx(String file,
String sheetName,
Integer headerRowIndex,
Integer primaryRowIndex)
Imports a sheet.
|
Sheet |
importXlsxInFolder(long folderID,
String file,
String sheetName,
Integer headerRowIndex,
Integer primaryRowIndex)
Imports a sheet in given folder.
|
Sheet |
importXlsxInWorkspace(long workspaceId,
String file,
String sheetName,
Integer headerRowIndex,
Integer primaryRowIndex)
Imports a sheet in given workspace.
|
PagedResult<Sheet> |
listOrganizationSheets(PaginationParameters parameters)
Deprecated.
|
PagedResult<Sheet> |
listSheets(EnumSet<SourceInclusion> includes,
PaginationParameters pagination)
Deprecated.
|
PagedResult<Sheet> |
listSheets(EnumSet<SourceInclusion> includes,
PaginationParameters pagination,
Date modifiedSince)
List all sheets.
|
Sheet |
moveSheet(long sheetId,
ContainerDestination containerDestination)
Moves the specified Sheet to another location.
|
SheetRowResources |
rowResources()
Return the SheetRowResources object that provides access to Row resources associated with Sheet resources.
|
void |
sendSheet(long id,
SheetEmail email)
Send a sheet as a PDF attachment via email to the designated recipients.
|
ShareResources |
shareResources()
Return the ShareResources object that provides access to Share resources associated with Sheet resources.
|
Sheet |
sortSheet(long sheetId,
SortSpecifier sortSpecifier)
Sort a sheet according to the sort criteria.
|
Sheet |
sortSheet(long sheetId,
SortSpecifier sortSpecifier,
Integer level)
Sort a sheet according to the sort criteria.
|
SheetSummaryResources |
summaryResources()
Return the SheetSummaryResources object that provides access to the sheet summary resources
associated with the Sheet resources.
|
SheetPublish |
updatePublishStatus(long id,
SheetPublish publish)
Sets the publish status of a sheet and returns the new status, including the URLs of any enabled publishings.
|
SheetUpdateRequestResources |
updateRequestResources()
Return the SheetUpdateRequestResources object that provides access to update request resources
associated with Sheet resources.
|
Sheet |
updateSheet(Sheet sheet)
Update a sheet.
|
PagedResult<Sheet> listSheets(EnumSet<SourceInclusion> includes, PaginationParameters pagination, Date modifiedSince) throws SmartsheetException
List all sheets.
It mirrors to the following Smartsheet REST API method: GET /sheets
includes - the source inclusionpagination - the object containing the pagination parametersmodifiedSince - restrict results to sheets modified on or after this dateIllegalArgumentException - 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 operation@Deprecated PagedResult<Sheet> listSheets(EnumSet<SourceInclusion> includes, PaginationParameters pagination) throws SmartsheetException
List all sheets.
It mirrors to the following Smartsheet REST API method: GET /sheets
includes - the source inclusionpagination - the object containing 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 operation@Deprecated PagedResult<Sheet> listOrganizationSheets(PaginationParameters parameters) throws SmartsheetException
List all sheets in the organization.
It mirrors to the following Smartsheet REST API method: GET /users/sheets
parameters - the object containing 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 operationSheet getSheet(long id, EnumSet<SheetInclusion> includes, EnumSet<ObjectExclusion> excludes, Set<Long> rowIds, Set<Integer> rowNumbers, Set<Long> columnIds, Integer pageSize, Integer page) throws SmartsheetException
Get a sheet.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id}
id - the id of the sheetincludes - used to specify the optional objects to include.columnIds - the column idsexcludes - the exclude parameterspage - the page numberpageSize - the page sizerowIds - the row idsrowNumbers - the row numbersIllegalArgumentException - 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 operationSheet getSheet(long id, EnumSet<SheetInclusion> includes, EnumSet<ObjectExclusion> excludes, Set<Long> rowIds, Set<Integer> rowNumbers, Set<Long> columnIds, Integer pageSize, Integer page, Integer ifVersionAfter) throws SmartsheetException
Get a sheet.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id}
id - the id of the sheetincludes - used to specify the optional objects to include.columnIds - the column idsexcludes - the exclude parameterspage - the page numberpageSize - the page sizerowIds - the row idsrowNumbers - the row numbersifVersionAfter - only fetch Sheet if more recent version availableIllegalArgumentException - 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 operationSheet getSheet(long id, EnumSet<SheetInclusion> includes, EnumSet<ObjectExclusion> excludes, Set<Long> rowIds, Set<Integer> rowNumbers, Set<Long> columnIds, Integer pageSize, Integer page, Integer ifVersionAfter, Integer level) throws SmartsheetException
Get a sheet.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id}
id - the id of the sheetincludes - used to specify the optional objects to include.columnIds - the column idsexcludes - the exclude parameterspage - the page numberpageSize - the page sizerowIds - the row idsrowNumbers - the row numbersifVersionAfter - only fetch Sheet if more recent version availablelevel - compatibility levelIllegalArgumentException - 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 operationvoid getSheetAsExcel(long id,
OutputStream outputStream)
throws SmartsheetException
Get a sheet as an Excel file.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id} with "application/vnd.ms-excel" Accept HTTP header
id - the id of the sheetoutputStream - the output stream to which the Excel file will be written.IllegalArgumentException - 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 operationvoid getSheetAsCSV(long id,
OutputStream outputStream)
throws SmartsheetException
Get a sheet as an Excel file.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id} with "application/vnd.ms-excel" Accept HTTP header
id - the id of the sheetoutputStream - the output stream to which the Excel file will be written.IllegalArgumentException - 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 operationvoid getSheetAsPDF(long id,
OutputStream outputStream,
PaperSize paperSize)
throws SmartsheetException
Get a sheet as a PDF file.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id} with "application/pdf" Accept HTTP header
id - the id of the sheetoutputStream - the output stream to which the PDF file will be written.paperSize - the paper sizeIllegalArgumentException - 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 operationSheet createSheet(Sheet sheet) throws SmartsheetException
Create a sheet in default "Sheets" collection.
It mirrors to the following Smartsheet REST API method: POST /sheets
sheet - the sheet to createdIllegalArgumentException - 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 operationSheet createSheetFromTemplate(Sheet sheet, EnumSet<SheetTemplateInclusion> includes) throws SmartsheetException
Create a sheet (from existing sheet or template) in default "Sheets" collection.
It mirrors to the following Smartsheet REST API method: POST /sheets
sheet - the sheet to createincludes - used to specify the optional objects to include.IllegalArgumentException - 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 operationSheet importCsv(String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException
Imports a sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/import
file - path to the CSV filesheetName - destination sheet nameheaderRowIndex - index (0 based) of row to be used for column namesprimaryRowIndex - index (0 based) of primary columnIllegalArgumentException - 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 operationSheet importXlsx(String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException
Imports a sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/import
file - path to the XLSX filesheetName - destination sheet nameheaderRowIndex - index (0 based) of row to be used for column namesprimaryRowIndex - index (0 based) of primary columnIllegalArgumentException - 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 operationSheet createSheetInFolder(long folderId, Sheet sheet) throws SmartsheetException
Create a sheet in given folder.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets
folderId - the folder idsheet - the sheet 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 operationSheet createSheetInFolderFromTemplate(long folderID, Sheet sheet, EnumSet<SheetTemplateInclusion> includes) throws SmartsheetException
Create a sheet (from existing sheet or template) in given folder.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets
folderID - the folder idsheet - the sheet to createincludes - used to specify the optional objects to include.IllegalArgumentException - 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 operationSheet importCsvInFolder(long folderID, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException
Imports a sheet in given folder.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets/import
folderID - the folder idfile - path to the CSV filesheetName - destination sheet nameheaderRowIndex - index (0 based) of row to be used for column namesprimaryRowIndex - index (0 based) of primary columnIllegalArgumentException - 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 operationSheet importXlsxInFolder(long folderID, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException
Imports a sheet in given folder.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets/import
folderID - the folder idfile - path to the XLSX filesheetName - destination sheet nameheaderRowIndex - index (0 based) of row to be used for column namesprimaryRowIndex - index (0 based) of primary columnIllegalArgumentException - 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 operationSheet createSheetInWorkspace(long workspaceId, Sheet sheet) throws SmartsheetException
Create a sheet in given workspace.
It mirrors to the following Smartsheet REST API method: POST /workspace/{workspaceId}/sheets
workspaceId - the workspace idsheet - the sheet 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 operationSheet createSheetInWorkspaceFromTemplate(long workspaceId, Sheet sheet, EnumSet<SheetTemplateInclusion> includes) throws SmartsheetException
Create a sheet (from existing sheet or template) in given workspace.
It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets
workspaceId - the workspace idsheet - the sheet to createincludes - used to specify the optional objects to includeIllegalArgumentException - 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 operationSheet importCsvInWorkspace(long workspaceId, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException
Imports a sheet in given workspace.
It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets/import
workspaceId - the workspace idfile - path to the CSV filesheetName - destination sheet nameheaderRowIndex - index (0 based) of row to be used for column namesprimaryRowIndex - index (0 based) of primary columnIllegalArgumentException - 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 operationSheet importXlsxInWorkspace(long workspaceId, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException
Imports a sheet in given workspace.
It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets/import
workspaceId - the workspace idfile - path to the XLSX filesheetName - destination sheet nameheaderRowIndex - index (0 based) of row to be used for column namesprimaryRowIndex - index (0 based) of primary columnIllegalArgumentException - 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 operationvoid deleteSheet(long id)
throws SmartsheetException
Delete a sheet.
It mirrors to the following Smartsheet REST API method: DELETE /sheet{id}
Parameters: - id : the ID of the sheet Returns: Noneid - the idIllegalArgumentException - 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 operationSheet updateSheet(Sheet sheet) throws SmartsheetException
Update a sheet.
It mirrors to the following Smartsheet REST API method: PUT /sheet/{id}
sheet - the sheet to updateIllegalArgumentException - 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 operationint getSheetVersion(long id)
throws SmartsheetException
Get a sheet version.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id}/version
id - the idIllegalArgumentException - 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 operationvoid sendSheet(long id,
SheetEmail email)
throws SmartsheetException
Send a sheet as a PDF attachment via email to the designated recipients.
It mirrors to the following Smartsheet REST API method: POST /sheet/{sheetId}/emails
id - the idemail - the emailIllegalArgumentException - 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 operationSheetPublish getPublishStatus(long id) throws SmartsheetException
Get the status of the Publish settings of the sheet, including the URLs of any enabled publishings.
It mirrors to the following Smartsheet REST API method: GET /sheet/{sheetId}/publish
id - the idIllegalArgumentException - 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 operationSheetPublish updatePublishStatus(long id, SheetPublish publish) throws SmartsheetException
Sets the publish status of a sheet and returns the new status, including the URLs of any enabled publishings.
It mirrors to the following Smartsheet REST API method: PUT /sheet/{sheetId}/publish
id - the idpublish - the SheetPublish object limited.IllegalArgumentException - 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 operationSheet copySheet(long sheetId, ContainerDestination containerDestination, EnumSet<SheetCopyInclusion> includes) throws SmartsheetException
Creates a copy of the specified sheet.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy
Exceptions: IllegalArgumentException : if folder is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting) SmartsheetRestException : if there is any other REST API related error occurred during the operation SmartsheetException : if there is any other error occurred during the operationsheetId - the sheet idcontainerDestination - describes the destination containerincludes - optional parameters to includeSmartsheetException - the smartsheet exceptionSheet copySheet(long sheetId, ContainerDestination containerDestination, EnumSet<SheetCopyInclusion> includes, EnumSet<CopyExclusion> excludes) throws SmartsheetException
Creates a copy of the specified sheet.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy
Exceptions: IllegalArgumentException : if folder is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting) SmartsheetRestException : if there is any other REST API related error occurred during the operation SmartsheetException : if there is any other error occurred during the operationsheetId - the sheet idcontainerDestination - describes the destination containerincludes - optional parameters to includeexcludes - optional parameters to excludeSmartsheetException - the smartsheet exceptionSheet moveSheet(long sheetId, ContainerDestination containerDestination) throws SmartsheetException
Moves the specified Sheet to another location.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/move
Exceptions: IllegalArgumentException : if folder is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting) SmartsheetRestException : if there is any other REST API related error occurred during the operation SmartsheetException : if there is any other error occurred during the operationsheetId - the folder idcontainerDestination - describes the destination containerSmartsheetException - the smartsheet exception@Deprecated UpdateRequest createUpdateRequest(long sheetId, MultiRowEmail email) throws SmartsheetException
Creates an Update Request for the specified Row(s) within the Sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/updaterequests
Exceptions: - IllegalArgumentException : if any argument is null - InvalidRequestException : if there is any problem with the REST API request - AuthorizationException : if there is any problem with the REST API authorization(access token) - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting) - SmartsheetRestException : if there is any other REST API related error occurred during the operation - SmartsheetException : if there is any other error occurred during the operationsheetId - the sheet idemail - the emailSmartsheetException - the smartsheet exceptionSheet sortSheet(long sheetId, SortSpecifier sortSpecifier) throws SmartsheetException
Sort a sheet according to the sort criteria.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/sort
sheetId - the sheet idsortSpecifier - the sort criteriaIllegalArgumentException - 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 operationSheet sortSheet(long sheetId, SortSpecifier sortSpecifier, Integer level) throws SmartsheetException
Sort a sheet according to the sort criteria.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/sort
sheetId - the sheet idsortSpecifier - the sort criterialevel - compatibility levelIllegalArgumentException - 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 operationShareResources shareResources()
Return the ShareResources object that provides access to Share resources associated with Sheet resources.
SheetRowResources rowResources()
Return the SheetRowResources object that provides access to Row resources associated with Sheet resources.
SheetColumnResources columnResources()
Return the SheetColumnResources object that provides access to Column resources associated with Sheet resources.
SheetAttachmentResources attachmentResources()
Return the AttachmentResources object that provides access to attachment resources associated with Sheet resources.
SheetDiscussionResources discussionResources()
Return the SheetDiscussionResources object that provides access to discussion resources associated with Sheet resources.
SheetCommentResources commentResources()
Return the SheetCommentResources object that provides access to discussion resources associated with Sheet resources.
SheetUpdateRequestResources updateRequestResources()
Return the SheetUpdateRequestResources object that provides access to update request resources associated with Sheet resources.
SheetFilterResources filterResources()
Return the SheetFilterResources object that provides access to sheet filter resources associated with Sheet resources.
SheetAutomationRuleResources automationRuleResources()
Return the SheetAutomationRuleResources object that provides access to automation rule resources associated with Sheet resources.
SheetCrossSheetReferenceResources crossSheetReferenceResources()
Return the CrossSheetReferenceResources object that provides access to cross sheet reference resources associated with Sheet resources.
SheetSummaryResources summaryResources()
Copyright © 2014–2019 Smartsheet. All rights reserved.