API Description

Adds devices to a group. Each group can have a maximum of 10,000 devices. At most 1,000 devices can be added at a time. Only devices that are applied for by Weixin Shake Nearby can be added to groups.

API Request Format

HTTP request method: POST (use the HTTPS protocol)https://api.weixin.qq.com/shakearound/device/group/adddevice?access_token=ACCESS_TOKEN
POST data format: json
POST data example:
  "group_id": 123,


Parameter Required Description
access_token Yes The credential for calling the API
device_identifiers Yes Device ID list
device_id Yes Device ID. This parameter is not required if UUID, major, and minor are entered.
UUID, major, minor Yes This parameter is not required if device ID is entered.
group_id Yes The globally unique identifier of the group


Example of JSON packet returned for a successful request:

  "data": {
  "errcode": 0,
  "errmsg": "success."