public interface DiscussionCommentResources
| Modifier and Type | Method and Description |
|---|---|
Comment |
addComment(long sheetId,
long discussionId,
Comment comment)
Add a comment to a discussion.
|
Comment |
addCommentWithAttachment(long sheetId,
long discussionId,
Comment comment,
File file,
String contentType)
Add a comment to a discussion with an attachment.
|
Comment |
updateComment(long sheetId,
Comment comment)
Update the specified comment
|
Comment addComment(long sheetId, long discussionId, Comment comment) throws SmartsheetException
Add a comment to a discussion.
It mirrors to the following Smartsheet REST API method:
POST /discussion/{discussionId}/comments
sheetId - the sheet iddiscussionId - the dicussion idcomment - the comment to addIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationComment addCommentWithAttachment(long sheetId, long discussionId, Comment comment, File file, String contentType) throws SmartsheetException, IOException
Add a comment to a discussion with an attachment.
It mirrors to the following Smartsheet REST API method:
POST /discussion/{discussionId}/comments
sheetId - the sheet iddiscussionId - the dicussion idcomment - the comment to addfile - the file to be attachedcontentType - the type of fileIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationIOException - is there is any error with fileComment updateComment(long sheetId, Comment comment) throws SmartsheetException
Update the specified comment
It mirrors to the following Smartsheet REST API method:
PUT PUT /sheets/{sheetId}/comments/{commentId}
sheetId - the sheet idcomment - the new comment objectIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationCopyright © 2014–2017 Smartsheet. All rights reserved.