Smartsheet.Api.Internal.ReportResourcesImpl.UpdatePublishStatus C# (CSharp) Method

UpdatePublishStatus() public method

Sets the publish status of a report and returns the new status, including the URLs of any enabled publishing.

It mirrors to the following Smartsheet REST API method: PUT /reports/{id}/publish

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 UpdatePublishStatus ( long reportId, ReportPublish reportPublish ) : ReportPublish
reportId long the reportId
reportPublish Smartsheet.Api.Models.ReportPublish the ReportPublish object
return Smartsheet.Api.Models.ReportPublish
        public ReportPublish UpdatePublishStatus(long reportId, ReportPublish reportPublish)
        {
            return this.UpdateResource<ReportPublish>("reports/" + reportId + "/publish", typeof(ReportPublish), reportPublish);
        }