To update for an existing language’s configuration for a virtual assistant.
Method | PUT |
Endpoint |
|
Content Type | application/json |
Authorization |
|
API Scope |
|
Path Parameters
Parameter | Description | Mandate |
---|---|---|
host | The environment URL. For example, https://bots.kore.ai |
Required |
Sample Request
curl -X PUT \
https://{{host}}/api/{{version-Id}}/public/bot/{{botId}}/language \
-H 'Content-Type: application/json' \
-H 'auth: YOUR_JWT_ACCESS_TOKEN' \
-d '[
{
"updateLanguage" : "",
"fileId":"",
"multiLingualConfigurations":{
"nluLanguage": "language_code",
"inputTranslation": true/false,
"responseTranslation": true/false
}
}
]'
Body Parameters
Parameter | Sub-parameter | Description | Mandate |
---|---|---|---|
updateLanguage | The language to be enabled based on the language code. | Required | |
field | The file ID for handling the file upload if the fileUpload language enablement is selected. |
Required | |
multiLingualConfigurations | Required | ||
multiLingualConfigurations.nluLanguage | Refers to the language code of the bot language. | Required | |
multiLingualConfigurations.inputTranslation | Refers to True/False setting for the input language translation to English. | Required | |
multiLingualConfigurations.responseTranslation | Refers to the True/False setting for the response language translation to English. | Required |
Sample Response
[
{
“message”: “Updated
“configurationDetails”: {
"dialogs":3,
"alerts":0,
"actions":0,
"knowledgetTasks":0,
"smallTalk":1,
"panels":0,
"widgets":0 }
}
]