次の方法で共有


Versions - Clone

Creates a new version from the selected version.

POST {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/clone

URI Parameters

Name In Required Type Description
appId
path True

string

uuid

The application ID.

Endpoint
path True

string

Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).

versionId
path True

string

The version ID.

Request Header

Name Required Type Description
Ocp-Apim-Subscription-Key True

string

Request Body

Name Type Description
version

string

The new version for the cloned model.

Responses

Name Type Description
201 Created

string

The new version ID.

Other Status Codes

ErrorResponse

Error Response.

Security

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Examples

Successful Clone Application Version request

Sample request

POST {Endpoint}/luis/api/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/versions/0.1/clone


{
  "version": "1.0"
}

Sample response

"1.0"

Definitions

Name Description
ErrorResponse

Error response when invoking an operation on the API.

TaskUpdateObject

Object model for cloning an application's version.

ErrorResponse

Error response when invoking an operation on the API.

Name Type Description
errorType

string

TaskUpdateObject

Object model for cloning an application's version.

Name Type Description
version

string

The new version for the cloned model.