Partager via


Model - Add Custom Prebuilt Domain

Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the application.

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

URI Parameters

Name In Required Type Description
appId
path True

string

uuid

The application ID.

Endpoint
path True

string

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

versionId
path True

string

The version ID.

Request Header

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

string

Request Body

Name Type Description
domainName

string

The domain name.

Responses

Name Type Description
201 Created

string[]

An array of the created customizable prebuilt domain intent and entity model Ids.

Other Status Codes

ErrorResponse

Error Response.

Security

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Examples

Successful Add Custom Prebuilt Domain to Application request

Sample request

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


{
  "domainName": "Web"
}

Sample response

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

Definitions

Name Description
ErrorResponse

Error response when invoking an operation on the API.

PrebuiltDomainCreateBaseObject

A model object containing the name of the custom prebuilt entity and the name of the domain to which this model belongs.

ErrorResponse

Error response when invoking an operation on the API.

Name Type Description
errorType

string

PrebuiltDomainCreateBaseObject

A model object containing the name of the custom prebuilt entity and the name of the domain to which this model belongs.

Name Type Description
domainName

string

The domain name.