public interface SheetSummaryResources
| Modifier and Type | Method and Description |
|---|---|
Result<SummaryField> |
addSheetSummaryFieldImage(long sheetId,
long fieldId,
String file,
String contentType,
String altText)
Adds an image to the sheet summary field.
|
List<SummaryField> |
addSheetSummaryFields(long sheetId,
List<SummaryField> fields,
Boolean renameIfConflict)
Insert fields into a sheet summary.
|
BulkItemResult<SummaryField> |
addSheetSummaryFieldsWithPartialSuccess(long sheetId,
List<SummaryField> fields,
Boolean renameIfConflict)
Insert fields into a sheet summary.
|
List<Long> |
deleteSheetSummaryFields(long sheetId,
Set<Long> fieldIds,
Boolean ignoreSummaryFieldsNotFound)
Delete fields in a sheet summary.
|
SheetSummary |
getSheetSummary(long sheetId,
EnumSet<SummaryFieldInclusion> includes,
EnumSet<SummaryFieldExclusion> excludes)
Gets the sheet summary
|
PagedResult<SummaryField> |
getSheetSummaryFields(long sheetId,
EnumSet<SummaryFieldInclusion> includes,
EnumSet<SummaryFieldExclusion> excludes,
PaginationParameters pagination)
Gets the sheet summary fields
|
List<SummaryField> |
updateSheetSummaryFields(long sheetId,
List<SummaryField> fields,
Boolean renameIfConflict)
Update fields in a sheet summary.
|
BulkItemResult<SummaryField> |
updateSheetSummaryFieldsWithPartialSuccess(long sheetId,
List<SummaryField> fields,
Boolean renameIfConflict)
Update fields in a sheet summary.
|
SheetSummary getSheetSummary(long sheetId, EnumSet<SummaryFieldInclusion> includes, EnumSet<SummaryFieldExclusion> excludes) throws SmartsheetException
Gets the sheet summary
It mirrors to the following Smartsheet REST API method: GET /sheets/{id}/summary
sheetId - the sheet idincludes - optional objects to includeexcludes - optional objects to excludeIllegalArgumentException - 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 operationPagedResult<SummaryField> getSheetSummaryFields(long sheetId, EnumSet<SummaryFieldInclusion> includes, EnumSet<SummaryFieldExclusion> excludes, PaginationParameters pagination) throws SmartsheetException
Gets the sheet summary fields
It mirrors to the following Smartsheet REST API method: GET /sheets/{id}/summary/fields
sheetId - the sheet idincludes - optional objects to includeexcludes - optional objects to excludepagination - pagination parameters for the responseIllegalArgumentException - 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 operationList<SummaryField> addSheetSummaryFields(long sheetId, List<SummaryField> fields, Boolean renameIfConflict) throws SmartsheetException
Insert fields into a sheet summary.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/summary/fields
sheetId - the sheet idfields - list of fields to be addedrenameIfConflict - true if the call should rename conflicting field titlesIllegalArgumentException - 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 operationBulkItemResult<SummaryField> addSheetSummaryFieldsWithPartialSuccess(long sheetId, List<SummaryField> fields, Boolean renameIfConflict) throws SmartsheetException
Insert fields into a sheet summary.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/summary/fields
sheetId - the sheet idfields - list of fields to be addedrenameIfConflict - true if the call should rename conflicting field titlesIllegalArgumentException - 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 operationList<SummaryField> updateSheetSummaryFields(long sheetId, List<SummaryField> fields, Boolean renameIfConflict) throws SmartsheetException
Update fields in a sheet summary.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/summary/fields
sheetId - the sheet idfields - list of summary fields to be updatedrenameIfConflict - true if the call should rename conflicting field titlesIllegalArgumentException - 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 operationBulkItemResult<SummaryField> updateSheetSummaryFieldsWithPartialSuccess(long sheetId, List<SummaryField> fields, Boolean renameIfConflict) throws SmartsheetException
Update fields in a sheet summary.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/summary/fields
sheetId - the sheet idfields - list of summary fields to be updatedrenameIfConflict - true if the call should rename conflicting field titlesIllegalArgumentException - 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 operationList<Long> deleteSheetSummaryFields(long sheetId, Set<Long> fieldIds, Boolean ignoreSummaryFieldsNotFound) throws SmartsheetException
Delete fields in a sheet summary.
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/summary/fields
sheetId - the sheet idfieldIds - List of field IdsignoreSummaryFieldsNotFound - true if the call should ignore fields not foundIllegalArgumentException - 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 operationResult<SummaryField> addSheetSummaryFieldImage(long sheetId, long fieldId, String file, String contentType, String altText) throws SmartsheetException, FileNotFoundException
Adds an image to the sheet summary field.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/summary/fields/{fieldId}/images
sheetId - the sheet idfieldId - the summary field idfile - path to image file to uploadcontentType - content-type of the file being uploadedaltText - alternate text for the imageIllegalArgumentException - 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 operationFileNotFoundExceptionCopyright © 2014–2019 Smartsheet. All rights reserved.