Create or update a synonym rule
Added in 8.10.0
Create or update a synonym rule in a synonym set.
If any of the synonym rules included is invalid, the API returns an error.
When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule.
PUT
/_synonyms/{set_id}/{rule_id}
curl \
--request PUT http://api.example.com/_synonyms/{set_id}/{rule_id} \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"synonyms":"string"}'