Méthode | Description | |
---|---|---|
AttachNewVersion ( long sheetId, long attachmentId, string file, string fileType ) : |
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: 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.
|
|
AttachmentVersioningResourcesImpl ( |
Constructor. Parameters: - Smartsheet : the SmartsheetImpl Exceptions: - IllegalArgumentException : if any argument is null
|
|
DeleteAllVersions ( long sheetId, long attachmentId ) : void |
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
|
|
ListVersions ( long sheetId, long attachmentId, |
Gets a list of all versions of the given Attachment ID, in order from newest to oldest. 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
|
Méthode | Description | |
---|---|---|
AttachFile ( string path, string file, string contentType ) : |
Attach file.
|
public AttachNewVersion ( long sheetId, long attachmentId, string file, string fileType ) : |
||
sheetId | long | the sheet id |
attachmentId | long | the attachment id |
file | string | the file path |
fileType | string | the file type |
Résultat |
public AttachmentVersioningResourcesImpl ( |
||
smartsheet | the Smartsheet | |
Résultat | System |
public DeleteAllVersions ( long sheetId, long attachmentId ) : void | ||
sheetId | long | the sheetId |
attachmentId | long | the attachment id |
Résultat | void |
public ListVersions ( long sheetId, long attachmentId, |
||
sheetId | long | the sheet id |
attachmentId | long | the attachment id |
paging | the pagination | |
Résultat | PaginatedResult |