[SOLVED] Configure what object rule configuration like (any match ,all match , ...) using api

eeldeen8951

New Member
Oct 20, 2025
3
0
1
this is an api request to change the configuration of what object
the response is ok with success = 1 but no changes appear in the ui page
thanks for your time


var options = new RestClientOptions("https://proxmoxhost")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/api2/json/config/ruledb/what/44/config", Method.Put);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "Token");
request.AddHeader("Csrfpreventiontoken", "CSRFToken");
request.AddParameter("and", "1");
request.AddParameter("invert", "1");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);