# Setting Official Account Information to Be Displayed
This API is used to set the Official Account information that is displayed on the scan-to-follow component.
# Request Address
POST https://api.weixin.qq.com/wxa/updateshowwxaitem?access_token=ACCESS_TOKEN
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| access_token | string | Yes | Mini Program API Call Token |
| wxa_subscribe_biz_flag | Yes | number | Specifies whether to enable the scan-to-follow component. 0: Disable; 1: Enable. |
| appid | string | No | If the scan-to-follow component is enabled, you need to pass in the new AppID of the Official Account. |
Note: The appid field needs to appear in the return list of the "Obtain the List of Official Accounts That Can Be Set" API.
POST data example:
{
"wxa_subscribe_biz_flag": 1,
"appid": "If the scan-to-follow component is enabled, you need to pass in the new AppID of the Official Account"
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | number | Error code |
| errmsg | string | Error message |
Example of returned result
{
"errcode": 0,
"errmsg": "ok"
}
# Error Code
| errcode Value | Description |
|---|---|
| 0 | Successful |