public string Url_DeleteWorkbookTag(TableauServerSignIn session, string workbookId, string tagText) { string workingText = _urlDeleteWorkbookTagTemplate; workingText = workingText.Replace("{{iwsSiteId}}", session.SiteId); workingText = workingText.Replace("{{iwsWorkbookId}}", workbookId); workingText = workingText.Replace("{{iwsTagText}}", tagText); ValidateTemplateReplaceComplete(workingText); return workingText; }
/// <summary> /// /// </summary> /// <param name="workbookId"></param> /// <param name="tagText"></param> private void DeleteTagFromContent(string workbookId, string tagText) { //ref: http://onlinehelp.tableau.com/current/api/rest_api/en-us/help.htm#REST/rest_api_ref.htm#Delete_Tag_from_Workbook%3FTocPath%3DAPI%2520Reference%7C_____20 //Create a web request var urlDeleteContentTag = _onlineUrls.Url_DeleteWorkbookTag(_onlineSession, workbookId, tagText); var webRequest = this.CreateLoggedInWebRequest(urlDeleteContentTag, "DELETE"); var response = GetWebReponseLogErrors(webRequest, "delete tag from content request"); }