Freigeben über


Model - Update Regex Entity Role

Aktualisieren einer Rolle für eine bestimmte Entität eines regulären Ausdrucks in einer Version der Anwendung

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

URI-Parameter

Name In Erforderlich Typ Beschreibung
appId
path True

string (uuid)

Die Anwendungs-ID.

Endpoint
path True

string

Unterstützte Cognitive Services-Endpunkte (Protokoll und Hostname, z. B. https://westus.api.cognitive.microsoft.com).

entityId
path True

string (uuid)

Die Entitäts-ID.

roleId
path True

string (uuid)

Die Entitätsrollen-ID.

versionId
path True

string

Die Versions-ID.

Anforderungsheader

Name Erforderlich Typ Beschreibung
Ocp-Apim-Subscription-Key True

string

Anforderungstext

Name Typ Beschreibung
name

string

Der Entitätsrollenname.

Antworten

Name Typ Beschreibung
200 OK

OperationStatus

Die Entitätsrolle wurde erfolgreich aktualisiert.

Other Status Codes

ErrorResponse

Fehlerantwort.

Sicherheit

Ocp-Apim-Subscription-Key

Typ: apiKey
In: header

Beispiele

Successful Update Regex Entity Extractor Role request

Beispielanforderung

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"
}

Beispiel für eine Antwort

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

Definitionen

Name Beschreibung
EntityRoleUpdateObject

Objektmodell zum Aktualisieren einer Entitätsrolle.

ErrorResponse

Fehlerantwort beim Aufrufen eines Vorgangs in der API.

OperationStatus

Antwort eines Vorgangsstatus.

OperationStatusType

Statuscode.

EntityRoleUpdateObject

Objektmodell zum Aktualisieren einer Entitätsrolle.

Name Typ Beschreibung
name

string

Der Entitätsrollenname.

ErrorResponse

Fehlerantwort beim Aufrufen eines Vorgangs in der API.

Name Typ Beschreibung
errorType

string

OperationStatus

Antwort eines Vorgangsstatus.

Name Typ Beschreibung
code

OperationStatusType

Statuscode.

message

string

Statusdetails.

OperationStatusType

Statuscode.

Wert Beschreibung
FAILED
Failed
Success