Features - Add Intent Feature
アプリケーションのバージョンで意図によって使用される新しい機能関係を追加します。
POST {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/intents/{intentId}/features
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
app
|
path | True |
string (uuid) |
アプリケーション ID。 |
|
Endpoint
|
path | True |
string |
サポートされている Cognitive Services エンドポイント (プロトコルとホスト名、例: https://westus.api.cognitive.microsoft.com)。 |
|
intent
|
path | True |
string (uuid) |
意図分類子 ID。 |
|
version
|
path | True |
string |
バージョン ID。 |
要求ヘッダー
| 名前 | 必須 | 型 | 説明 |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
要求本文
| 名前 | 型 | 説明 |
|---|---|---|
| featureName |
string |
使用される機能の名前。 |
| isRequired |
boolean |
|
| modelName |
string |
使用されるモデルの名前。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
正常な操作。 |
|
| Other Status Codes |
エラー応答。 |
セキュリティ
Ocp-Apim-Subscription-Key
型:
apiKey
/:
header
例
Successful Add Feature Relation request
要求のサンプル
POST {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/d7a08f1a-d276-4364-b2d5-b0235c61e37f/features
{
"featureName": "Phraselist1"
}
応答のサンプル
{
"code": "Success",
"message": "Operation Successful"
}
定義
| 名前 | 説明 |
|---|---|
|
Error |
API で操作を呼び出すときのエラー応答。 |
|
Model |
モデルの特徴情報を含むオブジェクト。モデル名または特徴名。 |
|
Operation |
操作の状態の応答。 |
|
Operation |
状態コード。 |
ErrorResponse
API で操作を呼び出すときのエラー応答。
| 名前 | 型 | 説明 |
|---|---|---|
| errorType |
string |
ModelFeatureInformation
モデルの特徴情報を含むオブジェクト。モデル名または特徴名。
| 名前 | 型 | 説明 |
|---|---|---|
| featureName |
string |
使用される機能の名前。 |
| isRequired |
boolean |
|
| modelName |
string |
使用されるモデルの名前。 |
OperationStatus
操作の状態の応答。
| 名前 | 型 | 説明 |
|---|---|---|
| code |
状態コード。 |
|
| message |
string |
状態の詳細。 |
OperationStatusType
状態コード。
| 値 | 説明 |
|---|---|
| Failed | |
| FAILED | |
| Success |