Method: apprecovery.create
Stay organized with collections
Save and categorize content based on your preferences.
Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the recovery action.
HTTP request
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
packageName |
string
Required. Package name of the app on which recovery action is performed.
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"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 .
} |
Fields |
targeting |
object (Targeting )
Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc.
|
Union field recovery_action . Type of app recovery action to be performed. Required. recovery_action can be only one of the following: |
remoteInAppUpdate |
object (RemoteInAppUpdate )
Action type is remote in-app update. As a consequence of this action, a downloadable recovery module is also created for testing purposes.
|
Response body
If successful, the response body contains a newly created instance of AppRecoveryAction
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
RemoteInAppUpdate
Object representation for Remote in-app update action type.
JSON representation |
{
"isRemoteInAppUpdateRequested": boolean
} |
Fields |
isRemoteInAppUpdateRequested |
boolean
Required. Set to true if Remote In-App Update action type is needed.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 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"]]