Model - Add Intent
Menambahkan niat ke versi aplikasi.
POST {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/intents
Parameter URI
Nama | Dalam | Diperlukan | Jenis | Deskripsi |
---|---|---|---|---|
app
|
path | True |
string uuid |
ID aplikasi. |
Endpoint
|
path | True |
string |
Titik akhir Cognitive Services yang didukung (protokol dan nama host, misalnya: https://westus.api.cognitive.microsoft.com). |
version
|
path | True |
string |
ID versi. |
Header Permintaan
Nama | Diperlukan | Jenis | Deskripsi |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Isi Permintaan
Nama | Jenis | Deskripsi |
---|---|---|
name |
string |
Nama ekstraktor entitas baru. |
Respons
Nama | Jenis | Deskripsi |
---|---|---|
201 Created |
string |
ID model niat yang dibuat. |
Other Status Codes |
Respons Kesalahan. |
Keamanan
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Contoh
Successful Create Intent Classifier request
Sample Request
POST {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents
{
"name": "BookFlight"
}
Sample Response
"227a71ed-7d4b-4dce-8f3a-16c4e5cc06e8"
Definisi
Nama | Deskripsi |
---|---|
Error |
Respons kesalahan saat memanggil operasi pada API. |
Model |
Model objek untuk membuat ekstraktor entitas baru. |
ErrorResponse
Respons kesalahan saat memanggil operasi pada API.
Nama | Jenis | Deskripsi |
---|---|---|
errorType |
string |
ModelCreateObject
Model objek untuk membuat ekstraktor entitas baru.
Nama | Jenis | Deskripsi |
---|---|---|
name |
string |
Nama ekstraktor entitas baru. |