v4
OpenAPI 3.1.02026-08-01166346466.7 KBstores
Update a search rule
Update a search rule by ID.
Args: store_identifier: The ID or name of the store rule_id: The ID of the search rule to update rule_update: SearchRuleUpdateParams object containing the fields to update
Returns: SearchRuleResponse: The updated search rule details
put/v1/stores/{store_identifier}/rules/{rule_id}
Path parameters
The ID or name of the store
rule_idstring uuid required
The ID of the search rule to update
The ID of the search rule to update
Request body
Example request
{
"rules": [
{
"substitution": "query1"
}
]
}Response
The updated search rule
Example response
{
"rules": [
{
"substitution": "query1"
}
]
}