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
sheetId
longthe id of the sheet
rowId
longthe id of the row
discussion
Discussionthe 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
sheetId
longthe id of the sheet
rowId
longthe id of the row
discussion
Discussionthe discussion to add
file
stringthe file path
fileType
stringthe 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
sheetId
longthe sheet Id
rowId
longthe row Id
include
IEnumerable<DiscussionInclusion>elements to include in response
paging
PaginationParametersthe 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