Interface DiscussionAttachmentResources
- Namespace
- Smartsheet.Api
- Assembly
- smartsheet-csharp-sdk.dll
This interface provides methods to access Attachment resources that are associated to Discussion resources.
Thread Safety: Implementation of this interface must be thread safe.
public interface DiscussionAttachmentResources
Methods
ListAttachments(long, long, PaginationParameters?)
Gets a list of all Attachments that are in the Discussion
It mirrors to the following Smartsheet REST API method:
GET /sheets/{sheetId}/discussions/{discussionId}/attachments
PaginatedResult<Attachment> ListAttachments(long sheetId, long discussionId, PaginationParameters? paging = null)
Parameters
sheetId
longthe sheetId
discussionId
longthe discussion Id
paging
PaginationParametersthe paging
Returns
- PaginatedResult<Attachment>
list of all Attachments that are in the Discussion.
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