v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14107861793.8 KB

Builds a bot, its intents, and its slot types into a specific locale. A bot can be built into multiple locales. At runtime the locale is used to choose a specific build of the bot.

post/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/

Path parameters

botIdstring required

The identifier of the bot to build. The identifier is returned in the response from the <a href="https://docs.aws.amazon.com/lexv2/latest/APIReference/API_CreateBot.html">CreateBot</a> operation.

botVersionstring required

The version of the bot to build. This can only be the draft version of the bot.

localeIdstring required

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>.

Response

Success

botIdstring

The identifier of the specified bot.

botVersionstring

The version of the bot that was built. This is only the draft version of the bot.

localeIdstring

The language and locale specified of where the bot can be used.

botLocaleStatus'Creating' | 'Building' | 'Built' | 'ReadyExpressTesting' | 'Failed' | 'Deleting' | 'NotBuilt' | 'Importing' | 'Processing'

The bot's build status. When the status is <code>ReadyExpressTesting</code> you can test the bot using the utterances defined for the intents and slot types. When the status is <code>Built</code>, the bot is ready for use and can be tested using any utterance.

lastBuildSubmittedDateTimestring date-time

A timestamp indicating the date and time that the bot was last built for this locale.