Skip to content

Restart App

Request

Restart an app on a Cloud Phone.

  • Preconditions: the phone must be powered on and not held by another member. Whether the app is installed is not checked — a package that is absent simply does nothing.
  • Completion: the response confirms the command was dispatched to the service, not that the app restarted. Confirm with /cloudphone/app/installedList or by observing the device.
Bodyapplication/json
idstring

Cloud phone ID

packageNamestring

App package name

curl -i -X POST \
  http://127.0.0.1:40000/api/cloudphone/app/restart \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "0",
    "packageName": ""
  }'

Responses

Success. data is a single boolean value.

Headers
any
Bodyapplication/json
codeinteger

Response code: 0 = success, >0 = error

msgstring or nullrequired

Response msg, Error message returned if code > 0

databoolean
requestIdstring

Unique request identifier; include it when contacting support

Response
{ "code": 0, "msg": null, "data": true, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }