This API is used to modify the network information of the store, such as the network name (SSID) or the password. Notes:

  1. To call this API to modify the network information, you must add the Wi-Fi network information under a store. For details, see "Adding Password-based Device" and "Adding Portal-based Device".

  2. After modifying the network information, you need to modify the SSID or passwords for all password-based devices, or modify the SSID for all portal-based devices, and then modify the SSID parameter in the Hardware Authentication Protocol API Description "Step 2: Modify Portal Page for Mobile Devices". Otherwise, connection will fail.

API Request Format

Protocol: HTTPS
HTTP request method: POST
Request URL: https://api.weixin.qq.com/bizwifi/shop/update?access_token=ACCESS_TOKEN    
Data format: JSON

Request Parameters

Parameter Required Description
access_token Yes The credential for calling the API
POST data Yes JSON data

POST Data

Example:

{
    "shop_id": 429620,
    "old_ssid": "WX123",
    "ssid": "WX567"
}

Fields:

Field Required Description
shop_id Yes Store ID
old_ssid Yes
ssid Yes The SSID of the wireless network device. This field consists of up to 32 characters. Avoid using Chinese characters to prevent garbled characters or connection failures due to device compatibility issues. SSID is required for portal-based devices and optional for password-based devices, and either the SSID or the password must begin with "WX".
password No The password for the wireless network device. It must be between 8-24 characters and cannot contain any Chinese characters. This field is only available to password-based devices, and either the SSID or the password must begin with "WX".

Response

The JSON data returned for a successful request:

{
  "errcode": 0,
}