/// <summary>The method to update tag</summary> /// <param name="id">long?</param> /// <param name="request">Instance of BodyWrapper</param> /// <param name="paramInstance">Instance of ParameterMap</param> /// <returns>Instance of APIResponse<ActionHandler></returns> public APIResponse <ActionHandler> UpdateTag(long?id, BodyWrapper request, ParameterMap paramInstance) { CommonAPIHandler handlerInstance = new CommonAPIHandler(); string apiPath = ""; apiPath = string.Concat(apiPath, "/crm/v2/settings/tags/"); apiPath = string.Concat(apiPath, id.ToString()); handlerInstance.APIPath = apiPath; handlerInstance.HttpMethod = Constants.REQUEST_METHOD_PUT; handlerInstance.CategoryMethod = Constants.REQUEST_CATEGORY_UPDATE; handlerInstance.ContentType = "application/json"; handlerInstance.Request = request; handlerInstance.Param = paramInstance; return(handlerInstance.APICall <ActionHandler>(typeof(ActionHandler), "application/json")); }
/// <summary>The method to create tags</summary> /// <param name="request">Instance of BodyWrapper</param> /// <param name="paramInstance">Instance of ParameterMap</param> /// <returns>Instance of APIResponse<ActionHandler></returns> public APIResponse <ActionHandler> CreateTags(BodyWrapper request, ParameterMap paramInstance) { CommonAPIHandler handlerInstance = new CommonAPIHandler(); string apiPath = ""; apiPath = string.Concat(apiPath, "/crm/v2/settings/tags"); handlerInstance.APIPath = apiPath; handlerInstance.HttpMethod = Constants.REQUEST_METHOD_POST; handlerInstance.CategoryMethod = Constants.REQUEST_CATEGORY_CREATE; handlerInstance.ContentType = "application/json"; handlerInstance.Request = request; handlerInstance.MandatoryChecker = true; handlerInstance.Param = paramInstance; return(handlerInstance.APICall <ActionHandler>(typeof(ActionHandler), "application/json")); }