Smartsheet.Api.Internal.RowAttachmentResourcesImpl.AttachFile C# (CSharp) Method

AttachFile() public method

Attaches a file to the Row.

This operation will always create a new attachment. To upload a new version of the same attachment, use the Attach New Version operation.

It mirrors To the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/attachments

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public AttachFile ( long sheetId, long rowId, string file, string fileType ) : Attachment
sheetId long the sheetId
rowId long the row Id
file string the file path
fileType string the file type
return Smartsheet.Api.Models.Attachment
        public Attachment AttachFile(long sheetId, long rowId, string file, string fileType)
        {
            return AttachFile("sheets/" + sheetId + "/rows/" + rowId + "/attachments", file, fileType);
        }

Same methods

RowAttachmentResourcesImpl::AttachFile ( string path, string file, string contentType ) : Attachment