Path parameters
- ruleset_id
string Required The unique identifier of the query ruleset containing the rule to be created or updated.
- rule_id
string Required The unique identifier of the query rule within the specified ruleset to be created or updated.
BodyRequired
PUT /_query_rules/{ruleset_id}/_rule/{rule_id}
curl \
--request PUT 'http://api.example.com/_query_rules/{ruleset_id}/_rule/{rule_id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"match_criteria\": {\n \"query_string\": \"puggles\"\n }\n}"'
Request example
Run `POST _query_rules/my-ruleset/_test` to test a ruleset. Provide the match criteria that you want to test against.
{
"match_criteria": {
"query_string": "puggles"
}
}