Aracılığıyla paylaş


Model - Update Regex Entity Role

Uygulamanın bir sürümündeki belirli bir normal ifade varlığı için rolü güncelleştirme

PUT {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}

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).

entityId
path True

string

uuid

Varlık kimliği.

roleId
path True

string

uuid

Varlık rolü 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ık rolü adı.

Yanıtlar

Name Tür Description
200 OK

OperationStatus

Varlık rolü başarıyla güncelleştirildi.

Other Status Codes

ErrorResponse

Hata Yanıtı.

Güvenlik

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Örnekler

Successful Update Regex Entity Extractor Role request

Sample Request

PUT {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/regexentities/3d73462d-98f0-4dcd-8d30-fab9e65f2e73/roles/6dbed7e2-7df6-4cd6-a225-97e6fbe4493d


{
  "name": "New Name"
}

Sample Response

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

Tanımlar

Name Description
EntityRoleUpdateObject

Varlık rolünü güncelleştirmek için nesne modeli.

ErrorResponse

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

OperationStatus

İşlem durumunun yanıtı.

OperationStatusType

Durum Kodu.

EntityRoleUpdateObject

Varlık rolünü güncelleştirmek için nesne modeli.

Name Tür Description
name

string

Varlık rolü adı.

ErrorResponse

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

Name Tür Description
errorType

string

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