// Initialize the clientvar client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));// Call the APIvar response = await client.BatchDictionaryEntriesAsync( Enum.Parse<DictionaryType>("Plurals"), new BatchDictionaryEntriesParams { ClearExistingDictionaryEntries = true, Requests = new List<BatchDictionaryEntriesRequest> { new BatchDictionaryEntriesRequest { Action = Enum.Parse<DictionaryAction>("AddEntry"), Body = new DictionaryEntry { ObjectID = "1", Language = Enum.Parse<SupportedLanguage>("En"), Word = "fancy", Words = new List<string> { "believe", "algolia" }, Decomposition = new List<string> { "trust", "algolia" }, State = Enum.Parse<DictionaryEntryState>("Enabled"), }, }, }, });// print the responseConsole.WriteLine(response);
See the full API reference
For more details about input parameters
and response fields.