younifyd
Menu

Edit Synonym

Edit synonym rule

PUT/rest/organizations/{organizationId}/commerce/v2/search/synonyms/{synonymId}

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Edit Synonym action (under Commerce).
  3. Fill in the fields below, then reference the result from later steps as {{editSynonym.response.data}}.

Request

Path parameters

organizationIdstringrequired

The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:** `acmecorporation8tp8wu3`

synonymIdstring (uuid)required

A UUID identifying the synonym rule.

Query parameters

trackingIdstringrequired

The unique identifier of the tracking target.

Request body

Enter the body as JSON in the step's Body field.

actionstringrequired

The synonym rule type. Possible values are: one-way, two-way, and one-way-reverse.

One ofone-waytwo-wayreplaceexact-match

fromarray<string>required

The search terms contained in the output query if matched against a synonym rule.

idstring (uuid)

A UUID identifying the synonym rule.

localesarray<object>

The list of locales the synonym applies to. When empty, the synonym applies to all locales.

countrystring

An ISO 3166-1 alpha-2 country code.

currencystring

An ISO 4217 currency code.

languagestring

An ISO 639-1 language code.

toarray<string>

The search terms contained in the input query.

updatedAtstring

The date and time at which the synonym was last updated.

json
{
  "action": "one-way",
  "from": [
    "sandals",
    "sneakers"
  ],
  "id": "58bb4b98-1daa-4767-8c15-90a0ea67645c",
  "locales": [
    {
      "country": "US",
      "currency": "USD",
      "language": "en"
    }
  ],
  "to": [
    "shoes",
    "heels"
  ],
  "updatedAt": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{editSynonym.response.data.<field>}}.

actionstring

The synonym rule type. Possible values are: one-way, two-way, and one-way-reverse.

One ofone-waytwo-wayreplaceexact-match

fromarray<string>

The search terms contained in the output query if matched against a synonym rule.

idstring (uuid)

A UUID identifying the synonym rule.

localesarray<object>

The list of locales the synonym applies to. When empty, the synonym applies to all locales.

countrystring

An ISO 3166-1 alpha-2 country code.

currencystring

An ISO 4217 currency code.

languagestring

An ISO 639-1 language code.

toarray<string>

The search terms contained in the input query.

updatedAtstring

The date and time at which the synonym was last updated.

json
{
  "action": "one-way",
  "from": [
    "sandals",
    "sneakers"
  ],
  "id": "58bb4b98-1daa-4767-8c15-90a0ea67645c",
  "locales": [
    {
      "country": "US",
      "currency": "USD",
      "language": "en"
    }
  ],
  "to": [
    "shoes",
    "heels"
  ],
  "updatedAt": "string"
}

Need more? See the Coveo guide for connection setup and behaviour shared by every action.

Was this page helpful?