Removes all rule match entries from the specified rule, effectively clearing its matching criteria while keeping the rule definition itself intact.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/rule/{ruleId}/matches/remove.do
Removes all rule match entries from the specified rule, effectively clearing its matching criteria while keeping the rule definition itself intact. This is a partial update operation useful for rebuilding a rule's matches from scratch. The rule is identified by its numeric ID in the URL path. Returns a JSON object with 'success: true' on completion. Requires authentication and UPDATE permission on the RULES static ACL identity.
Path Params
ruleIdintegerrequired
The unique numeric identifier of the rule whose matches should all be removed
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/rule/200/matches/remove.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());