v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1442228254.5 KB

Creates a new version of a slot type based on the $LATEST version of the specified slot type. If the $LATEST version of this resource has not changed since the last version that you created, Amazon Lex doesn't create a new version. It returns the last version that you created.

You can update only the $LATEST version of a slot type. You can't update the numbered versions that you create with the CreateSlotTypeVersion operation.

When you create a version of a slot type, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.

This operation requires permissions for the lex:CreateSlotTypeVersion action.

post/slottypes/{name}/versions

Path parameters

namestring required

The name of the slot type that you want to create a new version for. The name is case sensitive.

Request body

checksumstring

Checksum for the <code>$LATEST</code> version of the slot type that you want to publish. If you specify a checksum and the <code>$LATEST</code> version of the slot type has a different checksum, Amazon Lex returns a <code>PreconditionFailedException</code> exception and doesn't publish the new version. If you don't specify a checksum, Amazon Lex publishes the <code>$LATEST</code> version.

Response

Success

namestring

The name of the slot type.

descriptionstring

A description of the slot type.

lastUpdatedDatestring date-time

The date that the slot type was updated. When you create a resource, the creation date and last update date are the same.

createdDatestring date-time

The date that the slot type was created.

versionstring

The version assigned to the new slot type version.

checksumstring

Checksum of the <code>$LATEST</code> version of the slot type.

valueSelectionStrategy'ORIGINAL_VALUE' | 'TOP_RESOLUTION'

The strategy that Amazon Lex uses to determine the value of the slot. For more information, see <a>PutSlotType</a>.

parentSlotTypeSignaturestring

The built-in slot type used a the parent of the slot type.