editSettings
Usage
Report incorrect code
Copy
// Initialize the client
var client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));
// Call the API
var 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"),
},
},
},
}
);
// >LOG
See the full API reference
For more details about input parameters
and response fields.