Model - Update Hierarchical Entity

Memperbarui nama dan turunan model entitas hierarkis dalam versi aplikasi.

PUT {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}

Parameter URI

Name In Required Type Description
appId
path True
  • string
uuid

ID aplikasi.

Endpoint
path True
  • string

Titik akhir Cognitive Services yang didukung (protokol dan nama host, misalnya: https://westus.api.cognitive.microsoft.com).

hEntityId
path True
  • string
uuid

ID ekstraktor entitas hierarkis.

versionId
path True
  • string

ID versi.

Header Permintaan

Name Required Type Description
Ocp-Apim-Subscription-Key True
  • string

Isi Permintaan

Name Type Description
children
  • string[]

Entitas anak.

name
  • string

Nama entitas.

Respons

Name Type Description
200 OK

Operasi berhasil.

Other Status Codes

Respons Kesalahan.

Keamanan

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Contoh

Successful Get Hierarchical Entity Info request

Sample Request

PUT {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/fe559c31-9778-42ea-ba45-94e0bd7cf767


{
  "name": "Reservation",
  "children": [
    "Location::To"
  ]
}

Sample Response

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

Definisi

ErrorResponse

Respons kesalahan saat memanggil operasi pada API.

HierarchicalEntityModel

Ekstraktor entitas hierarkis.

OperationStatus

Respons status Operasi.

OperationStatusType

Kode Status.

ErrorResponse

Respons kesalahan saat memanggil operasi pada API.

Name Type Description
errorType
  • string

HierarchicalEntityModel

Ekstraktor entitas hierarkis.

Name Type Description
children
  • string[]

Entitas anak.

name
  • string

Nama entitas.

OperationStatus

Respons status Operasi.

Name Type Description
code

Kode Status.

message
  • string

Detail status.

OperationStatusType

Kode Status.

Name Type Description
FAILED
  • string
Failed
  • string
Success
  • string