Pattern - Update Pattern

アプリケーションのバージョンのパターンを更新します。

PUT {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/patternrules/{patternId}

URI パラメーター

名前 / 必須 説明
appId
path True

string (uuid)

アプリケーション ID。

Endpoint
path True

string

サポートされている Cognitive Services エンドポイント (プロトコルとホスト名、例: https://westus.api.cognitive.microsoft.com)。

patternId
path True

string (uuid)

パターン ID。

versionId
path True

string

バージョン ID。

要求ヘッダー

名前 必須 説明
Ocp-Apim-Subscription-Key True

string

要求本文

名前 説明
id

string (uuid)

パターン ID。

intent

string

パターンが属する意図の名前。

pattern

string

パターン テキスト。

応答

名前 説明
200 OK

PatternRuleInfo

更新されたパターン

Other Status Codes

ErrorResponse

エラー応答。

セキュリティ

Ocp-Apim-Subscription-Key

型: apiKey
/: header

Successful Update Pattern request

要求のサンプル

PUT {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/patternrules/cc8fa554-cc6c-4bcc-97eb-c8e5bc2091b3


{
  "pattern": "Who's {Name} reporting to?",
  "intent": "report to"
}

応答のサンプル

{
  "id": "cc8fa554-cc6c-4bcc-97eb-c8e5bc2091b3",
  "pattern": "who's {Name} reporting to?",
  "intent": "report to"
}

定義

名前 説明
ErrorResponse

API で操作を呼び出すときのエラー応答。

PatternRuleInfo

パターン ルール

PatternRuleUpdateObject

パターンを更新するためのオブジェクト モデル。

ErrorResponse

API で操作を呼び出すときのエラー応答。

名前 説明
errorType

string

PatternRuleInfo

パターン ルール

名前 説明
id

string (uuid)

パターン ID。

intent

string

パターンが属する意図の名前。

pattern

string

パターン テキスト。

PatternRuleUpdateObject

パターンを更新するためのオブジェクト モデル。

名前 説明
id

string (uuid)

パターン ID。

intent

string

パターンが属する意図の名前。

pattern

string

パターン テキスト。