palbaseDocs

Palbase Commerce & Promotions · API

POST/commerce/discovery/synonyms

Create or update a search synonym

Upsert a one-way or two-way search synonym group with Turkish-safe text normalization.

Called by your server, with the project's secret key.

Request body

kindstring · optionaltwo_way (default) or one_way.
source_termstring · requiredSource search term.
target_termsstring[] · requiredTarget expansion terms.
enabledboolean · optionalWhether active (default true).
curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/discovery/synonyms" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"source_term":"string","target_terms":["string"]}'

Responses

201Created or updated search synonym

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation CreateSearchSynonym of commerce's contract.