Freigeben über


Settings - Update

Aktualisiert die Einstellungen in einer Version der Anwendung.

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

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

versionId
path True

string

Die Versions-ID.

Anforderungsheader

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

string

Anforderungstext

Name Typ Beschreibung
listOfAppVersionSettingObject

AppVersionSettingObject[]

Eine Liste der aktualisierten Anwendungsversionseinstellungen.

Antworten

Name Typ Beschreibung
200 OK

OperationStatus

Erfolgreicher Vorgang.

Other Status Codes

ErrorResponse

Fehlerantwort.

Sicherheit

Ocp-Apim-Subscription-Key

Typ: apiKey
In: header

Beispiele

Successful Update Application Version settings request

Beispielanforderung

PUT {Endpoint}/luis/api/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/versions/0.1/settings


[
  {
    "name": "UseAllTrainingData",
    "value": "false"
  }
]

Beispiel für eine Antwort

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

Definitionen

Name Beschreibung
AppVersionSettingObject

Objektmodell einer Anwendungsversionseinstellung.

ErrorResponse

Fehlerantwort beim Aufrufen eines Vorgangs in der API.

OperationStatus

Antwort eines Vorgangsstatus.

OperationStatusType

Statuscode.

AppVersionSettingObject

Objektmodell einer Anwendungsversionseinstellung.

Name Typ Beschreibung
name

string

Der Name der Anwendungsversionseinstellung.

value

string

Der Einstellungswert der Anwendungsversion.

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