Interface SheetUpdateRequestResources
- Namespace
- Smartsheet.Api
- Assembly
- smartsheet-csharp-sdk.dll
Interface used to encapsulate sheet update request resources.
public interface SheetUpdateRequestResources
Methods
CreateUpdateRequest(long, UpdateRequest)
Creates an Update Request for the specified Row(s) within the Sheet. An email notification (containing a link to the update request) will be asynchronously sent to the specified recipient(s).
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/updaterequests
UpdateRequest CreateUpdateRequest(long sheetId, UpdateRequest updateRequest)
Parameters
sheetId
longthe sheetId
updateRequest
UpdateRequestthe UpdateRequest object
Returns
Exceptions
- InvalidOperationException
if any argument is null or empty string
- InvalidRequestException
if there is any problem with the REST API request
- AuthorizationException
if there is any problem with the REST API authorization (access token)
- ResourceNotFoundException
if the resource cannot be found
- ServiceUnavailableException
if the REST API service is not available (possibly due to rate limiting)
- SmartsheetException
if there is any other error during the operation
DeleteSentUpdateRequest(long, long)
Deletes the specified sent update request.
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/sentupdaterequests/{sentUpdateRequestId}
void DeleteSentUpdateRequest(long sheetId, long sentUpdateRequestId)
Parameters
Exceptions
- InvalidOperationException
if any argument is null or empty string
- InvalidRequestException
if there is any problem with the REST API request
- AuthorizationException
if there is any problem with the REST API authorization (access token)
- ResourceNotFoundException
if the resource cannot be found
- ServiceUnavailableException
if the REST API service is not available (possibly due to rate limiting)
- SmartsheetException
if there is any other error during the operation
DeleteUpdateRequest(long, long)
Terminates the future scheduled delivery of the Update Request specified in the URL.
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/updaterequests/{updateRequestId}
void DeleteUpdateRequest(long sheetId, long updateRequestId)
Parameters
Exceptions
- InvalidOperationException
if any argument is null or empty string
- InvalidRequestException
if there is any problem with the REST API request
- AuthorizationException
if there is any problem with the REST API authorization (access token)
- ResourceNotFoundException
if the resource cannot be found
- ServiceUnavailableException
if the REST API service is not available (possibly due to rate limiting)
- SmartsheetException
if there is any other error during the operation
GetSentUpdateRequest(long, long)
Gets the specified sent update request on the Sheet.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/sentupdaterequests/{updateRequestId}
SentUpdateRequest GetSentUpdateRequest(long sheetId, long sentUpdateRequestId)
Parameters
Returns
- SentUpdateRequest
the sent update request resource (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
Exceptions
- InvalidOperationException
if any argument is null or empty string
- InvalidRequestException
if there is any problem with the REST API request
- AuthorizationException
if there is any problem with the REST API authorization (access token)
- ResourceNotFoundException
if the resource cannot be found
- ServiceUnavailableException
if the REST API service is not available (possibly due to rate limiting)
- SmartsheetException
if there is any other error during the operation
GetUpdateRequest(long, long)
Gets the specified Update Request for the Sheet that has a future schedule.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/updaterequests/{updateRequestId}
UpdateRequest GetUpdateRequest(long sheetId, long updateRequestId)
Parameters
Returns
- UpdateRequest
the update request resource (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
Exceptions
- InvalidOperationException
if any argument is null or empty string
- InvalidRequestException
if there is any problem with the REST API request
- AuthorizationException
if there is any problem with the REST API authorization (access token)
- ResourceNotFoundException
if the resource cannot be found
- ServiceUnavailableException
if the REST API service is not available (possibly due to rate limiting)
- SmartsheetException
if there is any other error during the operation
ListSentUpdateRequests(long, PaginationParameters?)
Gets a list of all Sent Update Requests that have future schedules associated with the specified Sheet.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/sentupdaterequests
PaginatedResult<SentUpdateRequest> ListSentUpdateRequests(long sheetId, PaginationParameters? paging = null)
Parameters
sheetId
longthe Id of the sheet
paging
PaginationParameterspaging parameters for the list
Returns
- PaginatedResult<SentUpdateRequest>
A list of all SentUpdateRequests (note that an empty list will be returned if there are none).
Exceptions
- InvalidOperationException
if any argument is null or empty string
- InvalidRequestException
if there is any problem with the REST API request
- AuthorizationException
if there is any problem with the REST API authorization (access token)
- ResourceNotFoundException
if the resource cannot be found
- ServiceUnavailableException
if the REST API service is not available (possibly due to rate limiting)
- SmartsheetException
if there is any other error during the operation
ListUpdateRequests(long, PaginationParameters?)
Gets a list of all Update Requests that have future schedules associated with the specified Sheet.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/updaterequests
PaginatedResult<UpdateRequest> ListUpdateRequests(long sheetId, PaginationParameters? paging = null)
Parameters
sheetId
longpaging
PaginationParameters
Returns
- PaginatedResult<UpdateRequest>
A list of all UpdateRequests (note that an empty list will be returned if there are none).
Exceptions
- InvalidOperationException
if any argument is null or empty string
- InvalidRequestException
if there is any problem with the REST API request
- AuthorizationException
if there is any problem with the REST API authorization (access token)
- ResourceNotFoundException
if the resource cannot be found
- ServiceUnavailableException
if the REST API service is not available (possibly due to rate limiting)
- SmartsheetException
if there is any other error during the operation
UpdateUpdateRequest(long, UpdateRequest)
Changes the specified Update Request for the Sheet.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/updaterequests/{updateRequestId}
UpdateRequest UpdateUpdateRequest(long sheetId, UpdateRequest updateRequest)
Parameters
sheetId
longthe sheet Id
updateRequest
UpdateRequestthe UpdateRequest to update
Returns
- UpdateRequest
the updated updateRequest
Exceptions
- InvalidOperationException
if any argument is null or empty string
- InvalidRequestException
if there is any problem with the REST API request
- AuthorizationException
if there is any problem with the REST API authorization (access token)
- ResourceNotFoundException
if the resource cannot be found
- ServiceUnavailableException
if the REST API service is not available (possibly due to rate limiting)
- SmartsheetException
if there is any other error during the operation