OriginChainDB
Database endpoints

Configure synonyms

Replaces the synonym map for a table field's full-text index.

POST /v1/tenants/{tenant}/fts/{table}/{field}/synonyms

Replace a field's synonym dictionaryThis replaces the previous map rather than appending one entry.
  1. Choose the indexed fieldTarget the table field needing equivalent terms.
  2. Map terms to synonymsSend the complete canonical-term dictionary.
  3. Confirm the new mapExpect an empty 201 response.

Before you start

Use your database bearer token.

Connection setup

This replaces the field's complete synonym map. Include every mapping you want to keep.

Path parameters

FieldTypeRequired
tenantstringRequired
tablestringRequired
fieldstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • Maps each canonical term to an array of synonym strings;
  • replaces any previous map for the table field in full.
FieldTypeRequired
synonymsobjectRequired

Read the result

Success is 201 with an empty body. The map replaces the previous map for this field; it does not append a single synonym to existing settings.

Response statuses

HTTP status reference
StatusWhat to do
201Created
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd