Interface TemplateResources
- Namespace
- Smartsheet.Api
- Assembly
- smartsheet-csharp-sdk.dll
This interface provides methods to access Template resources.
Thread Safety: Implementation of this interface must be thread safe.
public interface TemplateResources
Methods
ListPublicTemplates(PaginationParameters?)
Gets the list of public Templates to which the user has access.
It mirrors to the following Smartsheet REST API method: GET /templates/public
PaginatedResult<Template> ListPublicTemplates(PaginationParameters? paging = null)
Parameters
paging
PaginationParameters
Returns
- PaginatedResult<Template>
the list of Templates (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
ListUserCreatedTemplates(PaginationParameters?)
Gets the list of user-created Templates to which the user has access.
It mirrors to the following Smartsheet REST API method: GET /templates
PaginatedResult<Template> ListUserCreatedTemplates(PaginationParameters? paging = null)
Parameters
paging
PaginationParameters
Returns
- PaginatedResult<Template>
the list of Templates (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