Click or drag to resize

AttachmentVersioningResources Interface

This interface provides methods to access Versioning resources that are associated to an Attachment resource.

Thread Safety: Implementation of this interface must be thread safe.

Namespace:  Smartsheet.Api
Assemblies:   smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
  smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
Syntax
public interface AttachmentVersioningResources

The AttachmentVersioningResources type exposes the following members.

Methods
  NameDescription
Public methodAttachNewVersion

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

Remarks

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.

Public methodDeleteAllVersions

Deletes all versions of the attachment corresponding to the specified Attachment ID. For attachments with multiple versions, this will effectively delete the attachment from the object that it’s attached to.

It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/attachments/{attachmentId}/versions

Public methodListVersions

Gets a list of all versions of the given Attachment ID, in order from newest to oldest.

Remarks

This operation supports pagination of results. For more information, see Paging.

to retrieve a download URL for a file attachment, use the Get Attachment operation for the specific version you want to download.

It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/attachments/{attachmentId}/versions

Top
See Also