younifyd
Menu

Synonym Maps Create Or Update

Creates a new synonym map or updates a synonym map if it already exists.

PUT/synonymmaps('{synonymMapName}')

Use it in a workflow

  1. Add a step and choose the Azure AI Search connector.
  2. Pick the Synonym Maps Create Or Update action (under Service).
  3. Fill in the fields below, then reference the result from later steps as {{synonymMapsCreateOrUpdate.response.data}}.

Request

Path parameters

synonymMapNamestringrequired

The name of the synonym map to create or update.

Headers

If-Matchstring

Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value.

If-None-Matchstring

Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.

Preferstringrequired

For HTTP PUT requests, instructs the service to return the created/updated resource on success.

One ofreturn=representation

Request body

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

namestringrequired

The name of the synonym map.

formatstringrequired

The format of the synonym map. Only the 'solr' format is currently supported.

One ofsolr

synonymsstringrequired

A series of synonym rules in the specified synonym map format. The rules must be separated by newlines.

encryptionKeyobject

A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or decrypt data-at-rest, such as indexes and synonym maps.

keyVaultKeyNamestringrequired

The name of your Azure Key Vault key to be used to encrypt your data at rest.

keyVaultKeyVersionstringrequired

The version of your Azure Key Vault key to be used to encrypt your data at rest.

keyVaultUristringrequired

The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`.

accessCredentialsobject2 fields

Credentials of a registered application created for your search service, used for authenticated access to the encryption keys stored in Azure Key Vault.

@odata.etagstring

The ETag of the synonym map.

json
{
  "name": "string",
  "format": "solr",
  "synonyms": "string",
  "encryptionKey": {
    "keyVaultKeyName": "string",
    "keyVaultKeyVersion": "string",
    "keyVaultUri": "string",
    "accessCredentials": {
      "applicationId": "string",
      "applicationSecret": "string"
    }
  },
  "@odata.etag": "string"
}

Response

Returns 200 with a any. Read it in later steps with {{synonymMapsCreateOrUpdate.response.data.<field>}}.

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