v1

latestOpenAPI 3.1.02026-07-22154213404.8 KB
Apps

Stop app

Force-stops the app identified by the path package name. When clearData is set in the request body, the app's data is also cleared. Protected packages cannot be stopped.

patch/devices/{deviceId}/apps/{packageName}

Path parameters

deviceIdstring required
packageNamestring required

Headers

X-Device-Display-IDinteger

Request body

$schemastring uri

A URL to the JSON Schema for this object.

clearDataboolean

If true, clears all app data (pm clear) in addition to stopping the app.

Example request

{
  "$schema": "https://example.com/schemas/StopAppArgs.json"
}

Response

No Content