Aracılığıyla paylaş


Model - Update Intent

Uygulamanın bir sürümünde amacın adını Güncelleştirmeler.

PUT {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/intents/{intentId}

URI Parametreleri

Name İçinde Gerekli Tür Description
appId
path True

string

uuid

Uygulama kimliği.

Endpoint
path True

string

Desteklenen Bilişsel Hizmetler uç noktaları (protokol ve konak adı, örneğin: https://westus.api.cognitive.microsoft.com).

intentId
path True

string

uuid

Amaç sınıflandırıcı kimliği.

versionId
path True

string

Sürüm kimliği.

İstek Başlığı

Name Gerekli Tür Description
Ocp-Apim-Subscription-Key True

string

İstek Gövdesi

Name Tür Description
name

string

Varlığın yeni adı.

Yanıtlar

Name Tür Description
200 OK

OperationStatus

İşlem başarılı.

Other Status Codes

ErrorResponse

Hata Yanıtı.

Güvenlik

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Örnekler

Successful Rename Intent Model request

Sample Request

PUT {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/intents/d7a08f1a-d276-4364-b2d5-b0235c61e37f


{
  "name": "newTest"
}

Sample Response

{
  "code": "Success",
  "message": "Operation Successful"
}

Tanımlar

Name Description
ErrorResponse

API'de bir işlem çağrılırken hata yanıtı.

ModelUpdateObject

Amaç sınıflandırıcısını güncelleştirmek için nesne modeli.

OperationStatus

İşlem durumunun yanıtı.

OperationStatusType

Durum Kodu.

ErrorResponse

API'de bir işlem çağrılırken hata yanıtı.

Name Tür Description
errorType

string

ModelUpdateObject

Amaç sınıflandırıcısını güncelleştirmek için nesne modeli.

Name Tür Description
name

string

Varlığın yeni adı.

OperationStatus

İşlem durumunun yanıtı.

Name Tür Description
code

OperationStatusType

Durum Kodu.

message

string

Durum ayrıntıları.

OperationStatusType

Durum Kodu.

Name Tür Description
FAILED

string

Failed

string

Success

string