Versions - Clone
Creates a new version from the selected version.
POST {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/clone
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
app
|
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). |
version
|
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 |
Error Response. |
Security
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Examples
Successful Clone Application Version request
Sample request
POST {Endpoint}/luis/authoring/v3.0-preview/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/versions/0.1/clone
{
"version": "1.0"
}
Sample response
"1.0"
Definitions
Name | Description |
---|---|
Error |
Error response when invoking an operation on the API. |
Task |
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. |