AttachmentVersioningResourcesAttachNewVersion Method |
Uploads a new version of a file to a Sheet or Row. This operation can be performed using a simple upload or a multipart upload. For more information, see Posting an Attachment.
It mirrors to the following Smartsheet REST API method:
POST /sheets/{sheetId}/attachments/{attachmentId}/versions
Uploading new versions is not supported for attachments on Comments or for URL attachments.
This is a resource-intensive operation and incurs 10 additional requests against the rate limit.
Namespace: Smartsheet.Api
Attachment AttachNewVersion( long sheetId, long attachmentId, string file, string fileType )
Exception | Condition |
---|---|
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 |