Freigeben über


Apps - Add Custom Prebuilt Domain

Adds a prebuilt domain along with its intent and entity models as a new application.

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

URI Parameters

Name In Required Type Description
Endpoint
path True

string

Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).

Request Header

Name Required Type Description
Ocp-Apim-Subscription-Key True

string

Request Body

Name Type Description
culture

string

The culture of the new domain.

domainName

string

The domain name.

Responses

Name Type Description
201 Created

string

The ID of the created application.

Other Status Codes

ErrorResponse

Error Response.

Security

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Examples

Successful Add Custom Prebuilt Application request

Sample request

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


{
  "culture": "en-US",
  "domainName": "Web"
}

Sample response

location: https://westus.api.cognitive.microsoft.com/luis/api/v2.0/apps/customprebuiltdomains/00000000-0000-0000-0000-000000000000
"00000000-0000-0000-0000-000000000000"

Definitions

Name Description
ErrorResponse

Error response when invoking an operation on the API.

PrebuiltDomainCreateObject

A prebuilt domain create object containing the name and culture of the domain.

ErrorResponse

Error response when invoking an operation on the API.

Name Type Description
errorType

string

PrebuiltDomainCreateObject

A prebuilt domain create object containing the name and culture of the domain.

Name Type Description
culture

string

The culture of the new domain.

domainName

string

The domain name.