younifyd
Menu

Create or update a query ruleset

Create or update a query ruleset

PUT/_query_rules/{ruleset_id}

Use it in a workflow

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

Request

Path parameters

ruleset_idstringrequired

The unique identifier of the query ruleset to be created or updated.

Request body

Enter the body as JSON in the step's Body field.

rulesoneOfrequired
json
{
  "rules": null
}

Response

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

resultany
json
{
  "result": null
}

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