| Field | Value |
|---|---|
| Method | POST |
| Endpoint | https://{{host}}/api/1.1/public/bot/{{botId}}/defaultLanguage |
| Content Type | application/json |
| Authorization | auth: {{JWT}} See How to generate the JWT Token. |
| API Scope | App Settings: Language Management; Admin Console: Language Settings > Language Management |
Path Parameters
| Parameter | Required | Description |
|---|---|---|
host | Yes | The environment URL. For example, https://platform.kore.ai. |
botId | Yes | Bot ID or Stream ID. You can access it from the App Settings page. |
Sample Request
Body Parameters
| Parameter | Description | Required |
|---|---|---|
languageCode | The ISO language code, for example en-US for American English or es-ES for Spanish. | Required |
Sample Response
Success Response
Error Responses
Scenario 1: Missing scope from the app.- There is no rollback once the API execution is complete.
- No publishing is required to display the default language in published mode.
- Once the API is executed, the default language is reflected immediately.