Add One Way Synonyms

This method creates new one way synonyms for a parent phrase. Any synonyms provided in the JSON structure are added to the parent phrase.

curl -X POST -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#

POST 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