Method: apprecovery.create
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Erstellen Sie eine Aktion zur App-Wiederherstellung mit dem Status „ENTWURF“. Hinweis: Durch diese Aktion wird die Wiederherstellungsaktion nicht ausgeführt.
HTTP-Anfrage
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
packageName |
string
Erforderlich. Paketname der App, für die die Wiederherstellung ausgeführt wird.
|
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
JSON-Darstellung |
{
"targeting": {
object (Targeting )
},
// Union field recovery_action can be only one of the following:
"remoteInAppUpdate": {
object (RemoteInAppUpdate )
}
// End of list of possible types for union field recovery_action .
} |
Felder |
targeting |
object (Targeting )
Hier werden Targeting-Kriterien für die Wiederherstellungsaktion angegeben, z. B. Regionen, Android SDK-Versionen und App-Versionen.
|
Union-Feld recovery_action . Art der durchzuführenden App-Wiederherstellung. Erforderlich. Für recovery_action ist nur einer der folgenden Werte zulässig: |
remoteInAppUpdate |
object (RemoteInAppUpdate )
Der Aktionstyp ist „Remote-In-App-Aktualisierung“. Als Folge dieser Aktion wird auch ein herunterladbares Wiederherstellungsmodul für Testzwecke erstellt.
|
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von AppRecoveryAction
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/androidpublisher
RemoteInAppUpdate
Objektdarstellung für den Aktionstyp „Remote-In-App-Aktualisierung“.
JSON-Darstellung |
{
"isRemoteInAppUpdateRequested": boolean
} |
Felder |
isRemoteInAppUpdateRequested |
boolean
Erforderlich. Legen Sie „true“ fest, wenn der Aktionstyp „Remote-In-App-Update“ erforderlich ist.
|
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-17 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-12-17 (UTC)."],[[["Create a draft app recovery action to address issues within your app, without immediate execution."],["Define targeting criteria such as regions, Android versions, and app versions to control which users receive the recovery action."],["Specify the recovery action type, in this case, a remote in-app update, enabling you to deliver a downloadable recovery module to affected users."],["Utilize the provided HTTP request structure with the necessary path parameters and request body to initiate the draft creation."],["This action requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details creating an app recovery action using a POST request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries`. The request requires the app's package name as a path parameter. The request body must include `targeting` criteria and specify the `recovery_action`, with the only supported type being `remoteInAppUpdate`. This sets the `isRemoteInAppUpdateRequest` field to `true`. Successful requests return an `AppRecoveryAction` instance, and the operation requires the `androidpublisher` OAuth scope.\n"]]