Modify Synonym Group

This can be used to reset a single synonym group to the given set of synonyms.

curl -X PUT -H "Content-Type: application/json" \
-d '{"synonyms": ["0% milk", "skim milk", "nonfat milk"]}' \
-u"[your token]:" "https://ac.cnstrc.com/v1/synonym_groups/4?key=[your API key]"
info

The above command returns a 204 Success response on success. For simplicity's sake, a 204 Success response will be returned even if the request leaves the group unchanged.

HTTP Request#

PUT https://ac.cnstrc.com/v1/synonym_groups/[group_id]?key=[your API key]

JSON Parameters#

ParameterRequired?Description
synonymsYesDetermines what phrases will be included in the final synonym group.