v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1442228254.5 KB

Creates a new version of an intent based on the $LATEST version of the intent. If the $LATEST version of this intent hasn't changed since you last updated it, Amazon Lex doesn't create a new version. It returns the last version you created.

You can update only the $LATEST version of the intent. You can't update the numbered versions that you create with the CreateIntentVersion operation.

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

This operation requires permissions to perform the lex:CreateIntentVersion action.

post/intents/{name}/versions

Path parameters

namestring required

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

Request body

checksumstring

Checksum of the <code>$LATEST</code> version of the intent that should be used to create the new version. If you specify a checksum and the <code>$LATEST</code> version of the intent has a different checksum, Amazon Lex returns a <code>PreconditionFailedException</code> exception and doesn't publish a new version. If you don't specify a checksum, Amazon Lex publishes the <code>$LATEST</code> version.

Response

Success

namestring

The name of the intent.

descriptionstring

A description of the intent.

sampleUtterancesUtterance[]

An array of sample utterances configured for the intent.

parentIntentSignaturestring

A unique identifier for a built-in intent.

lastUpdatedDatestring date-time

The date that the intent was updated.

createdDatestring date-time

The date that the intent was created.

versionstring

The version number assigned to the new version of the intent.

checksumstring

Checksum of the intent version created.