Skip to content

Batch Update Custom Vocabulary Item

lexmodelsv2_batch_update_custom_vocabulary_item R Documentation

Update a batch of custom vocabulary items for a given bot locale's custom vocabulary

Description

Update a batch of custom vocabulary items for a given bot locale's custom vocabulary.

Usage

lexmodelsv2_batch_update_custom_vocabulary_item(botId, botVersion,
  localeId, customVocabularyItemList)

Arguments

botId

[required] The identifier of the bot associated with this custom vocabulary

botVersion

[required] The identifier of the version of the bot associated with this custom vocabulary.

localeId

[required] The identifier of the language and locale where this custom vocabulary is used. The string must match one of the supported locales. For more information, see Supported Languages .

customVocabularyItemList

[required] A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally contain a displayAs and/or a weight.

Value

A list with the following syntax:

list(
  botId = "string",
  botVersion = "string",
  localeId = "string",
  errors = list(
    list(
      itemId = "string",
      errorMessage = "string",
      errorCode = "DUPLICATE_INPUT"|"RESOURCE_DOES_NOT_EXIST"|"RESOURCE_ALREADY_EXISTS"|"INTERNAL_SERVER_FAILURE"
    )
  ),
  resources = list(
    list(
      itemId = "string",
      phrase = "string",
      weight = 123,
      displayAs = "string"
    )
  )
)

Request syntax

svc$batch_update_custom_vocabulary_item(
  botId = "string",
  botVersion = "string",
  localeId = "string",
  customVocabularyItemList = list(
    list(
      itemId = "string",
      phrase = "string",
      weight = 123,
      displayAs = "string"
    )
  )
)