Compartilhar via


Model - Add Custom Prebuilt Intent

Adds a customizable prebuilt intent model to a version of the application.

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

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.

modelName

string

The intent name or entity name.

Responses

Name Type Description
201 Created

string

The ID of the created intent model.

Other Status Codes

ErrorResponse

Error Response.

Security

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Examples

Successful Add Custom Prebuilt Intent request

Sample request

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


{
  "domainName": "Calendar",
  "modelName": "Add"
}

Sample response

"1c2e70c1-3cbf-4e89-9703-9583b81102b9"

Definitions

Name Description
ErrorResponse

Error response when invoking an operation on the API.

PrebuiltDomainModelCreateObject

A model object containing the name of the custom prebuilt intent or 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

PrebuiltDomainModelCreateObject

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

Name Type Description
domainName

string

The domain name.

modelName

string

The intent name or entity name.