v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14107861793.8 KB

Creates a custom slot type

To create a custom slot type, specify a name for the slot type and a set of enumeration values, the values that a slot of this type can assume.

put/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/

Path parameters

botIdstring required

The identifier of the bot associated with this slot type.

botVersionstring required

The identifier of the bot version associated with this slot type.

localeIdstring required

The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type 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>.

Request body

slotTypeNamestring required

The name for the slot. A slot type name must be unique within the intent.

descriptionstring

A description of the slot type. Use the description to help identify the slot type in lists.

parentSlotTypeSignaturestring
<p>The built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type.</p> <p>Only <code>AMAZON.AlphaNumeric</code> is supported.</p>

Response

Success

slotTypeIdstring

The unique identifier assigned to the slot type. Use this to identify the slot type in the <code>UpdateSlotType</code> and <code>DeleteSlotType</code> operations.

slotTypeNamestring

The name specified for the slot type.

descriptionstring

The description specified for the slot type.

parentSlotTypeSignaturestring

The signature of the base slot type specified for the slot type.

botIdstring

The identifier for the bot associated with the slot type.

botVersionstring

The version of the bot associated with the slot type.

localeIdstring

The specified language and local specified for the slot type.

creationDateTimestring date-time

A timestamp of the date and time that the slot type was created.