VMOS Cloud API
  • 简体中文
  • English
  • 简体中文
  • English
  • Product Introduction
  • Product Type
  • Product Billing
  • OpenAPI
    • Getting Started
    • API Documentation
    • LLMs.txt (AI Quick Reference)
    • OpenAPI Spec (for AI & tools)
    • Error Code
    • Instance Property List
    • Android device modification attribute list
    • Callback Task Business Type Codes
    • Changelog
    • Mobile Root Certificate Format Specification
  • Login-Based APIs
    • Device Group Management (Login Required)
  • Android SDK
    • Example Construction
    • API Documentation
    • Callback Functions
    • Error Code
    • Changelog
  • Web H5 SDK
    • Example Build
    • API Documentation
    • H5 SDK Callback Functions
    • Error Code
    • Change log
  • Windows PC SDK
    • Example Setup
    • API Documentation
    • Callback Functions
    • Changelog
  • Edge-Cloud Communication Development
    • AIDL Integration Method
    • System Service API (AIDL)
  • Similar to XP, LSP Hook framework

    • Xposed-like / LSPosed Framework
    • Sensor Data Dynamic Simulation
  • Related agreements

Authentication

These endpoints manage device groups for a signed-in account. Include the user's login credential in the token request header. An Access Key and OpenAPI signature cannot replace this credential.

HeaderRequiredDescription
tokenYesUser login credential
Content-TypeFor POSTapplication/json

For OpenAPI queries, see List Device Groups and List Devices by Group. Group write operations currently require the login-based endpoints on this page.

List Personal Groups and Devices

GET /vcpcloud/api/userPadGroup/getUserPadListByUserId

Returns personal groups and devices for the signed-in account. No request body is required. This endpoint does not support switching team views with teamId.

Common response fields

FieldTypeDescription
codeIntegerStatus code; 200 for success
msgStringResult message
tsLongResponse timestamp in milliseconds
dataObject[]Device groups
data[].groupIdIntegerGroup ID
data[].groupNameStringGroup name
data[].groupPadCountIntegerNumber of devices in the group
data[].userPadsObject[]Devices in the group
data[].userPads[].equipmentIdLongDevice ID
data[].userPads[].padCodeStringCloud phone code
data[].userPads[].padNameStringCloud phone name

Manage Device Groups

POST /vcpcloud/api/userPadGroup/operateUserPadGroup

Select an operation with operateType. Send a JSON request body.

Request Parameters

ParameterTypeRequiredDescription
operateTypeIntegerYesOperation type; see below
teamIdLongFor team operationsCurrent team ID
oldGroupIdIntegerOperations 0 and 2Group to delete or update
groupNameStringOperations 1 and 2Group name, 1–15 characters
equipmentListInteger[]Operations 3, 4 and 5Device IDs
newGroupIdIntegerOperation 3Destination group ID
sortIntegerNoSort value for creation or updates
groupNamePrefixStringOperation 4Name prefix for new groups
splitTypeIntegerOperation 41: devices per group; 2: group count
eachGroupDeviceCountIntegerWhen splitType=1Devices per group; positive integer
totalGroupCountIntegerWhen splitType=2Total groups; positive integer

Operation Types

operateTypeOperationDescription
0Delete a groupDeletes a custom group and retains devices
1Create a groupCreates an empty group
2Update a groupChanges the name and sort value
3Move devicesMoves selected devices to an existing group
4Create groups and move devicesSplits devices by group size or count
5Restore team classificationTeam members only; restores selected devices

Constraints

  • Group names, including complete names generated in bulk, must not exceed 15 characters.
  • totalGroupCount must not exceed the number of selected devices.
  • Personal default and hourly groups cannot be deleted. Deleting a personal custom group moves its devices to the default group.
  • Only devices that the account may organize can be moved. Magic Box devices do not support group changes, and the hourly group cannot be a destination.
  • Omit teamId for personal groups. Team owners use their own groups; members use their personal groups within the selected team.
  • A member's group changes affect only their own classification, without changing device ownership or access. Inherited team groups cannot be renamed or deleted.
  • Each team member can create up to 1000 personal groups per team and process up to 10000 devices per request.
  • Operation 5 is available only to team members and requires both teamId and equipmentList. Deleting a member's custom group restores its devices to the default team classification.

Request Examples

Send each body below to this endpoint with the required headers. Replace the sample IDs with valid IDs from the current account and selected team view.

Create a group

{
  "operateType": 1,
  "groupName": "Test group",
  "sort": 1
}

Update the name and sort value

{
  "operateType": 2,
  "oldGroupId": 100001,
  "groupName": "Operations",
  "sort": 2
}

Move devices to an existing group

{
  "operateType": 3,
  "newGroupId": 100001,
  "equipmentList": [100001, 100002]
}

Create groups by device count per group

{
  "operateType": 4,
  "groupNamePrefix": "Test",
  "splitType": 1,
  "eachGroupDeviceCount": 2,
  "equipmentList": [100001, 100002, 100003, 100004]
}

Create a specified number of groups

{
  "operateType": 4,
  "groupNamePrefix": "Test",
  "splitType": 2,
  "totalGroupCount": 2,
  "equipmentList": [100001, 100002, 100003, 100004]
}

Delete a group

{
  "operateType": 0,
  "oldGroupId": 100001
}

Restore the default classification as a team member

{
  "operateType": 5,
  "teamId": 100001,
  "equipmentList": [100001, 100002]
}

Response

FieldTypeDescription
codeIntegerStatus code; 200 for success
msgStringResult message
tsLongResponse timestamp in milliseconds
{
  "code": 200,
  "msg": "success",
  "ts": 1800000000000
}

A successful response does not include newly created group IDs. Refresh the group list for the current account view after the operation.

Common Error Codes

codeDescription
300Operation failed
400Invalid parameters or quantity limit exceeded
1018Personal group name is empty or too long
1040Invalid name length for a member's team group
1057Missing destination group ID
1058Group does not exist or is unavailable to the account
1060Magic Box devices do not support group changes
1085Group cannot be deleted or does not exist
1086Moving devices into the hourly group is not allowed
3329No permission to access the team or selected devices
Prev
OpenAPI
Next
Android SDK