Interface RowDiscussionResources
- Namespace
- Smartsheet.Api
- Assembly
- smartsheet-csharp-sdk.dll
This interface provides methods to access Discussion resources associated to a row resource.
Thread Safety: Implementation of this interface must be thread safe.
public interface RowDiscussionResources
Methods
CreateDiscussion(long, long, Discussion)
Creates a new Discussion on a Row.
It mirrors to the following Smartsheet REST API method:
POST /sheets/{sheetId}/rows/{rowId}/discussions
Discussion CreateDiscussion(long sheetId, long rowId, Discussion discussion)
Parameters
sheetIdlongthe id of the sheet
rowIdlongthe id of the row
discussionDiscussionthe discussion to add
Returns
- Discussion
the created 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
CreateDiscussionWithAttachment(long, long, Discussion, string, string)
Creates a new Discussion attached with an Attachment on a Row.
It mirrors to the following Smartsheet REST API method:
POST /sheets/{sheetId}/rows/{rowId}/discussions
Discussion CreateDiscussionWithAttachment(long sheetId, long rowId, Discussion discussion, string file, string fileType)
Parameters
sheetIdlongthe id of the sheet
rowIdlongthe id of the row
discussionDiscussionthe discussion to add
filestringthe file path
fileTypestringthe file type, can be null
Returns
- Discussion
the created 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
ListDiscussions(long, long, IEnumerable<DiscussionInclusion>?, PaginationParameters?)
Gets a list of all Discussions associated with the specified Row.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/discussions
PaginatedResult<Discussion> ListDiscussions(long sheetId, long rowId, IEnumerable<DiscussionInclusion>? include = null, PaginationParameters? paging = null)
Parameters
sheetIdlongthe sheet Id
rowIdlongthe row Id
includeIEnumerable<DiscussionInclusion>elements to include in response
pagingPaginationParametersthe pagination
Returns
- PaginatedResult<Discussion>
list of all Discussions
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