Apps - Add Custom Prebuilt Domain
将预生成的域及其意向和实体模型作为新应用程序添加。
POST {Endpoint}/luis/api/v2.0/apps/customprebuiltdomains
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
Endpoint
|
path | True |
string |
支持的认知服务终结点(协议和主机名,例如:https://westus.api.cognitive.microsoft.com)。 |
请求头
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
请求正文
| 名称 | 类型 | 说明 |
|---|---|---|
| culture |
string |
新域的区域性。 |
| domainName |
string |
域名。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 201 Created |
string |
已创建应用程序的 ID。 |
| Other Status Codes |
错误响应。 |
安全性
Ocp-Apim-Subscription-Key
类型:
apiKey
在:
header
示例
Successful Add Custom Prebuilt Application request
示例请求
POST {Endpoint}/luis/api/v2.0/apps/customprebuiltdomains
{
"culture": "en-US",
"domainName": "Web"
}
示例响应
location: https://westus.api.cognitive.microsoft.com/luis/api/v2.0/apps/customprebuiltdomains/00000000-0000-0000-0000-000000000000
"00000000-0000-0000-0000-000000000000"
定义
| 名称 | 说明 |
|---|---|
|
Error |
调用 API 上的作时出现错误响应。 |
|
Prebuilt |
预生成的域创建对象,该对象包含域的名称和区域性。 |
ErrorResponse
调用 API 上的作时出现错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| errorType |
string |
PrebuiltDomainCreateObject
预生成的域创建对象,该对象包含域的名称和区域性。
| 名称 | 类型 | 说明 |
|---|---|---|
| culture |
string |
新域的区域性。 |
| domainName |
string |
域名。 |