younifyd
Menu

Delete a query rule

Delete a query rule

DELETE/_query_rules/{ruleset_id}/_rule/{rule_id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Delete a query rule action (under query_rules).
  3. Fill in the fields below, then reference the result from later steps as {{deleteAQueryRule.response.data}}.

Request

Path parameters

ruleset_idstringrequired

The unique identifier of the query ruleset containing the rule to delete

rule_idstringrequired

The unique identifier of the query rule within the specified ruleset to delete

Response

Returns 200 with an object. Read it in later steps with {{deleteAQueryRule.response.data.<field>}}.

acknowledgedboolean

For a successful response, this value is always true. On failure, an exception is returned instead.

json
{
  "acknowledged": false
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Delete a query rule — Elasticsearch — Documentation