---
updatedAt: 2026-05-27T07:13:46.000Z
---

# Update app

Public API for updating an app on your AppsFlyer account

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "App management API V2.0",
    "description": "API for managing an app on your AppsFlyer account",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://hq1.appsflyer.com/api/app/v2.0"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/apps/{app_id}/{platform}": {
      "put": {
        "tags": [
          "App management"
        ],
        "summary": "Update app",
        "description": "Public API for updating an app on your AppsFlyer account",
        "operationId": "app-mng-v2-put",
        "parameters": [
          {
            "name": "app_id",
            "in": "path",
            "description": "App id to update (case-sensitive)",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/app_id"
                }
              ]
            }
          },
          {
            "name": "platform",
            "in": "path",
            "description": "Platform app to update",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/platform"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "app updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardApiResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing input params or request body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardApiResponse"
                },
                "examples": {
                  "InvalidMinTimeBetweenSessions": {
                    "value": {
                      "message": "Invalid value. The value must be a whole number, expressed in seconds, representing either 1-59 minutes or 1-24 hours.",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Invalid value. The value must be a whole number, expressed in seconds, representing either 1-59 minutes or 1-24 hours.",
                        "resource": "app"
                      }
                    }
                  },
                  "InvalidReAttributionWindow": {
                    "value": {
                      "message": "Invalid value. The value must be a whole number, expressed in days representing either 1-23 months (each month considered as 30 days) or 730 days.",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Invalid value. The value must be a whole number, expressed in days representing either 1-23 months (each month considered as 30 days) or 730 days.",
                        "resource": "app"
                      }
                    }
                  },
                  "InvalidMinTimeBetweenReEngagements": {
                    "value": {
                      "message": "Invalid value. The value must be a whole number, expressed in seconds, representing either 1-23 hours or 1-30 days",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Invalid value. The value must be a whole number, expressed in seconds, representing either 1-23 hours or 1-30 days",
                        "resource": "app"
                      }
                    }
                  },
                  "MissingRequiredValueReEngagementAttribution": {
                    "value": {
                      "message": "Required at \\\"reEngagementAttribution.isEnabled\\\"",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Required at \\\"reEngagementAttribution.isEnabled\\\"",
                        "resource": "app"
                      }
                    }
                  },
                  "InvalidPropertyEnableAggregatedAdvancedPrivacy": {
                    "value": {
                      "message": "Unrecognized key(s) in object: enableAggregatedAdvancedPrivacy",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Unrecognized key(s) in object: enableAggregatedAdvancedPrivacy",
                        "resource": "app"
                      }
                    }
                  },
                  "InvalidPropertyEnableReinstallDetection": {
                    "value": {
                      "message": "Unrecognized key(s) in object: enableReinstallDetection",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Unrecognized key(s) in object: enableReinstallDetection",
                        "resource": "app"
                      }
                    }
                  },
                  "InvalidPropertyEnableSeoAppAttribution": {
                    "value": {
                      "message": "Unrecognized key(s) in object: enableSeoAppAttribution",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Unrecognized key(s) in object: enableSeoAppAttribution",
                        "resource": "app"
                      }
                    }
                  },
                  "InvalidPropertyX": {
                    "value": {
                      "message": "Unrecognized key(s) in object: X",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Unrecognized key(s) in object: X",
                        "resource": "app"
                      }
                    }
                  },
                  "InvalidPlatformUrlParam": {
                    "value": {
                      "message": "Invalid enum value. Expected 'android' | 'ios' | 'windowsphone', received 'androidd' at \\\"platform\\\"",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Invalid enum value. Expected 'android' | 'ios' | 'windowsphone', received 'androidd' at \\\"platform\\\"",
                        "resource": "app"
                      }
                    }
                  },
                  "InvalidPropertyType": {
                    "value": {
                      "message": "Expected typeA, received typeB at \\\"X\\\"",
                      "error": {
                        "status": 400,
                        "code": "VALIDATION_FAILED",
                        "message": "Expected typeA, received typeB at \\\"X\\\"",
                        "resource": "app"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Authentication error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardApiResponse"
                },
                "examples": {
                  "Authentication failed": {
                    "value": {
                      "message": "Authentication failed. Please ensure the provided token is correct and try again. If the issue persists, contact your CSM.",
                      "error": {
                        "status": 401,
                        "code": "AUTHENTICATION_FAILED",
                        "message": "Authentication failed. Please ensure the provided token is correct and try again. If the issue persists, contact your CSM.",
                        "resource": "app"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - You are not authorized to perform this action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardApiResponse"
                },
                "examples": {
                  "Forbidden - unauthorized user action": {
                    "value": {
                      "message": "Forbidden. You are not authorized to perform this action. Please verify you have the correct role, and required permissions to perform this action. If this issue persists please contact your CSM.",
                      "error": {
                        "status": 403,
                        "code": "FORBIDDEN_UNAUTHORIZED_USER_ACTION",
                        "message": "Forbidden. You are not authorized to perform this action. Please verify you have the correct role, and required permissions to perform this action. If this issue persists please contact your CSM.",
                        "resource": "app"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found - Something went wrong please try again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardApiResponse"
                },
                "examples": {
                  "AppNotFound": {
                    "value": {
                      "message": "The app wasn’t found. Possible reasons: The app doesn’t exist in your account, the app ID was misspelled, or the wrong platform was entered. Please try again with the correct details. If the issue persists, contact your CSM or hello@appsflyer.com",
                      "error": {
                        "status": 404,
                        "code": "APP_ENTITY_NOT_FOUND",
                        "message": "The app wasn’t found. Possible reasons: The app doesn’t exist in your account, the app ID was misspelled, or the wrong platform was entered. Please try again with the correct details. If the issue persists, contact your CSM or hello@appsflyer.com",
                        "resource": "app"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "We were unable to complete your request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardApiResponse"
                },
                "examples": {
                  "API token verification failed": {
                    "value": {
                      "message": "We were unable to verify your api access token. Please ensure the provided token is correct and try again. If the issue persists, contact your CSM.",
                      "error": {
                        "status": 422,
                        "code": "API_TOKEN_VERIFICATION_FAILED",
                        "message": "We were unable to verify your api access token. Please ensure the provided token is correct and try again. If the issue persists, contact your CSM.",
                        "resource": "app"
                      }
                    }
                  },
                  "AppVerificationFailed": {
                    "value": {
                      "message": "We were unable to verify the provided app entity. The app doesn't exist in your account, the app ID was misspelled, or the wrong platform was entered. Please try again with the correct details. If the issue persists, contact your CSM or hello@appsflyer.com\"",
                      "error": {
                        "status": 422,
                        "code": "APP_VERIFICATION_FAILED",
                        "message": "We were unable to verify the provided app entity. The app doesn't exist in your account, the app ID was misspelled, or the wrong platform was entered. Please try again with the correct details. If the issue persists, contact your CSM or hello@appsflyer.com",
                        "resource": "app"
                      }
                    }
                  },
                  "FailedToUpdateApp": {
                    "value": {
                      "message": "We were unable to update the app. Please try again and if the issue persists, contact your CSM.",
                      "error": {
                        "status": 422,
                        "code": "UPDATE_APP_FAILED",
                        "message": "We were unable to update the app. Please try again and if the issue persists, contact your CSM.",
                        "resource": "app"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests - Exceeded rate limitation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandardApiResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "platform": {
        "type": "string",
        "description": "App platform: Android, iOS, or Windows Phone\n",
        "enum": [
          "android",
          "ios",
          "windowsphone"
        ]
      },
      "app_id": {
        "type": "string",
        "description": "Required only when status is ***pending*** or ***out_of_store***\n\nExample values\n\n- **Android:** *com.publisher.name* (Android package name, case-sensitive)\n- **iOS:** *123456789* (App ID assigned by the App Store, without the prefix *id*)\n- **Windows Phone:** *a1b2c3d4e5f6* (App ID assigned by the Windows Phone Store)\n"
      },
      "UpdateAppRequest": {
        "type": "object",
        "properties": {
          "enableProbabilisticViewThroughAttribution": {
            "type": "boolean",
            "description": "Enables or disables the probabilistic View-through Attribution (VTA) feature"
          },
          "enableIpMasking": {
            "type": "boolean",
            "description": "Enables or disables the IP Masking feature"
          },
          "minTimeBetweenSessions": {
            "type": "number",
            "description": "Minimum time between sessions, expressed in seconds. The accepted values are either whole minutes ranging from 1 to 59 minutes (60 to 3540 seconds), or whole hours ranging from 1 to 24 hours (3600 to 86,400 seconds)"
          },
          "reAttributionWindow": {
            "type": "number",
            "description": "Number of days after the first install that reinstalls aren't attributed as new installs, expressed in days. The accepted values are whole months ranging from 1 to 23 month (30 to 690 days), and 730 days."
          },
          "reEngagementAttribution": {
            "type": "object",
            "properties": {
              "isEnabled": {
                "type": "boolean",
                "description": "Enables or disables the Retargeting Attribution feature"
              },
              "minTimeBetweenReEngagements": {
                "type": "number",
                "description": "Minimum time between re-engagement conversions, expressed in seconds. The accepted values are either whole hours ranging from 0 to 23 hours (0 to 82,800 seconds), or whole days ranging from 1 to 30 days (86,400 to 2,592,000 seconds)"
              }
            }
          },
          "enableSeoAppAttribution": {
            "type": "boolean",
            "description": "Enables or disables the organic search attribution feature. Available for IOS and Android apps only"
          },
          "enableAggregatedAdvancedPrivacy": {
            "type": "boolean",
            "description": "Enables or disables the Aggregated Advanced Privacy (AAP) feature only for IOS apps"
          },
          "enableReinstallDetection": {
            "type": "boolean",
            "description": "Detects reinstalls without depending on advertising IDs only for IOS apps"
          }
        }
      },
      "StandardApiError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "resource": {
            "type": "string"
          },
          "documentation": {
            "type": "string"
          }
        }
      },
      "StandardApiResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object"
          },
          "message": {
            "type": "string"
          },
          "error": {
            "$ref": "#/components/schemas/StandardApiError"
          }
        }
      }
    }
  }
}
```