Menu
Create Synonym
Create a synonym rule
POST
/rest/organizations/{organizationId}/commerce/v2/search/synonymsUse it in a workflow
- Add a step and choose the Coveo connector.
- Pick the Create Synonym action (under Commerce).
- Fill in the fields below, then reference the result from later steps as
{{createSynonym.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"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 201 with an object. Read it in later steps with {{createSynonym.response.data.<field>}}.
{
"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?