public interface SheetAutomationRuleResources
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAutomationRule(long sheetId,
long automationRuleId)
Delete an automation rule.
|
AutomationRule |
getAutomationRule(long sheetId,
long automationRuleId)
Get a automation rule.
|
PagedResult<AutomationRule> |
listAutomationRules(long sheetId,
PaginationParameters pagination)
Get all automation rules for this sheet
|
AutomationRule |
updateAutomationRule(long sheetId,
AutomationRule automationRule)
Updates an automation rule.
|
PagedResult<AutomationRule> listAutomationRules(long sheetId, PaginationParameters pagination) throws SmartsheetException
Get all automation rules for this sheet
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/automationrules
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 IDpagination - the pagination parametersSmartsheetException - the smartsheet exceptionAutomationRule getAutomationRule(long sheetId, long automationRuleId) throws SmartsheetException
Get a automation rule.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/automationrules/{automationRuleId}
sheetId - the sheet idautomationRuleId - the automation rule 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 operationAutomationRule updateAutomationRule(long sheetId, AutomationRule automationRule) throws SmartsheetException
Updates an automation rule.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/automationrules/{automationRuleId}
sheetId - the sheet idautomationRule - the updated automation ruleIllegalArgumentException - 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 deleteAutomationRule(long sheetId,
long automationRuleId)
throws SmartsheetException
Delete an automation rule.
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/automationrules/{automationRuleId}
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 IDautomationRuleId - the automation rule IDSmartsheetException - the smartsheet exceptionCopyright © 2014–2019 Smartsheet. All rights reserved.