/api/update/online-update
Use this interface to start to update the specified online version.
System configuration editing permissions are required.
Prototype
Protocol |
HTTP/HTTPS GET |
URL |
ip[:port]/api/update/online-update |
Content-Type |
Request: Content-Type: application/json Response: Content-Type: application/json |
Request Cookies
Parameter |
Description |
mwcloud-sid |
A string that is used to identify current logged-in user. |
mwcloud-uid |
Current logged-in username. |
Request URL parameters
Parameter |
Description |
version |
Version number. |
Request Body
Request Example
POST /api/update/online-update?version=2.0.1 HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: xx
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
Response Parameters
Parameter |
Description |
Content-Type |
Value: 'application/json; charset=UTF-8' |
Response Body
Response Example
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
content-length: xx
{
"result": 0
}