public virtual int UpdateConfigurations(List <ConfigurationDefinition> items)
        {
            var url      = RepositoryClient.BuildUrl(ApiKeys, "configurations");
            var data     = JsonConvert.SerializeObject(items);
            var response = RepositoryClient.PutStatus(url, data);

            return(response);
        }
Example #2
0
        public virtual int UpdateBlacklistItem(List <string> items, string configId = null)
        {
            string url      = RepositoryClient.BuildUrl(ApiKeys, "blacklist", configId);
            var    data     = JsonConvert.SerializeObject(items);
            var    response = RepositoryClient.PutStatus(url, data);

            return(response);
        }