你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Model - Add Custom Prebuilt Domain

在应用程序的版本中添加可自定义的预生成域及其所有意向和实体模型。

POST {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/customprebuiltdomains

URI 参数

名称 必需 类型 说明
appId
path True

string (uuid)

应用程序 ID。

Endpoint
path True

string

支持的认知服务终结点(协议和主机名,例如:https://westus.api.cognitive.microsoft.com)。

versionId
path True

string

版本 ID。

请求头

名称 必需 类型 说明
Ocp-Apim-Subscription-Key True

string

请求正文

名称 类型 说明
domainName

string

域名。

响应

名称 类型 说明
201 Created

string[]

创建的可自定义预生成域意向和实体模型 ID 的数组。

Other Status Codes

ErrorResponse

错误响应。

安全性

Ocp-Apim-Subscription-Key

类型: apiKey
在: header

示例

Successful Add Custom Prebuilt Domain to Application request

示例请求

POST {Endpoint}/luis/api/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/versions/0.1/customprebuiltdomains


{
  "domainName": "Web"
}

示例响应

[
  "2639049a-e41d-4285-a3c6-8a17ed299473",
  "200d6173-ecfa-4967-bf95-3c319902dc52",
  "f80aa9ba-64c8-4a36-8cc5-92010d0aadf1",
  "f50d6f0f-b2dd-4973-9270-c114312b3a10"
]

定义

名称 说明
ErrorResponse

调用 API 上的作时出现错误响应。

PrebuiltDomainCreateBaseObject

一个模型对象,该对象包含自定义预生成实体的名称以及此模型所属的域的名称。

ErrorResponse

调用 API 上的作时出现错误响应。

名称 类型 说明
errorType

string

PrebuiltDomainCreateBaseObject

一个模型对象,该对象包含自定义预生成实体的名称以及此模型所属的域的名称。

名称 类型 说明
domainName

string

域名。