Modify One Way Synonyms

This method modifies one-way synonyms (child phrases) for a parent phrase. All existing child phrases are replaced with those provided in the child_phrases array.

curl -X PUT -H 'Content-Type: application/json' \
-u '[your token]:' \
"http://ac.cnstrc.com/v2/one_way_synonyms/spices?key=[your API key]"
-d '{
"child_phrases": [
{ "phrase": "pepper" },
{ "phrase": "cinnamon" }
]
}'
info

The above command returns a 204 No Content response on success.

HTTP Request#

PUT http://ac.cnstrc.com/v2/one_way_synonyms/[phrase]?key=[your API key]

Response Example
HTTP 204 OK (No Content)

JSON Parameters#

ParameterRequired?Description
child_phrasesYesArray of synonyms