# Version Rollback
This API is used to roll back an online version of Mini Program.
Note:
- The rollback failed if no previous online version is available.
- You can roll back a Mini Program only to the most previous version. In other words, after rolling back the current version, you cannot roll back the Mini Program again by calling this API.
# Request Address
GET https://api.weixin.qq.com/wxa/revertcoderelease?access_token=ACCESS_TOKEN
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| access_token | String | Yes | Mini Program API Call Token |
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | number | Error code |
| errmsg | string | Error message |
Example of returned result
{
"errcode": 0,
"errmsg": "ok"
}
# Error Code
| Error Code | Description |
|---|---|
| 0 | Successful |
| -1 | System error |
| 87011 | This version has been released in beta test, and therefore cannot be rolled back. |
| 87012 | This version cannot be rolled back. Possible reasons are as follows: 1: No previous online version is available. 2: This version was rolled back. 3: This version is released before the rollback feature is launched. |