Skip to content

Enable Team App Preinstallation

Request

Added in v2.70.0. The app must belong to the current team. Use the team app ID from /api/cloudphone/team/app/page, not a Cloud Phone ID or catalogue app ID.

Saves whether the app is preinstalled at boot. Enabling is subject to the team app limit. Does not report installation completion.

Permission: EXTENSION_EDIT.

Documented business errors: 33354, 33369. See Error Codes for what each code means. Any operation can additionally return the common codes.

Bodyapplication/jsonrequired
idstring^\d+$required

Team app ID

enabledbooleanrequired

Whether enabled

curl -i -X POST \
  http://127.0.0.1:40000/api/cloudphone/team/app/enable \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "1672940217990529",
    "enabled": true
  }'

Responses

Success. The outcome is carried by code; data is null.

Bodyapplication/json
codeinteger
msgstring or null
datanull
requestIdstring
Response
{ "code": 0, "msg": null, "data": null, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }