Model - Examples
Gets the example utterances for the given intent or entity model in a version of the application.
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/models/{modelId}/examples
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/models/{modelId}/examples?skip={skip}&take={take}
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). |
model
|
path | True |
string |
The ID (GUID) of the model. |
version
|
path | True |
string |
The version ID. |
skip
|
query |
integer |
The number of entries to skip. Default value is 0. |
|
take
|
query |
integer |
The number of entries to return. Maximum page size is 500. Default is 100. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Responses
Name | Type | Description |
---|---|---|
200 OK |
A list of example utterances for the model. |
|
Other Status Codes |
Error Response. |
Security
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Examples
Successful Get Examples Per Model Request
Sample request
GET {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/models/e4770e43-233a-48ad-a1fa-54f4f97eff9f/examples
Sample response
[
{
"id": 10002,
"text": "Lorem ipsum dolor sit amet"
},
{
"id": 10003,
"text": "consectetur adipiscing elit"
},
{
"id": 10004,
"text": "sed do eiusmod tempor incididunt"
}
]
Definitions
Name | Description |
---|---|
Error |
Error response when invoking an operation on the API. |
Label |
An object containing the example utterance's text. |
ErrorResponse
Error response when invoking an operation on the API.
Name | Type | Description |
---|---|---|
errorType |
string |
LabelTextObject
An object containing the example utterance's text.
Name | Type | Description |
---|---|---|
id |
integer |
The ID of the Label. |
text |
string |
The text of the label. |