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 |
---|---|---|---|---|
app
|
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). |
entity
|
path | True |
string uuid |
Varlık kimliği. |
role
|
path | True |
string uuid |
Varlık rolü kimliği. |
version
|
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 |
Varlık rolü başarıyla güncelleştirildi. |
|
Other Status Codes |
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 |
---|---|
Entity |
Varlık rolünü güncelleştirmek için nesne modeli. |
Error |
API'de bir işlem çağrılırken hata yanıtı. |
Operation |
İşlem durumunun yanıtı. |
Operation |
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 |
Durum Kodu. |
|
message |
string |
Durum ayrıntıları. |
OperationStatusType
Durum Kodu.
Name | Tür | Description |
---|---|---|
FAILED |
string |
|
Failed |
string |
|
Success |
string |