Restart server
POST /api/v2/MT4/{tradePlatform}/SrvRestart
Soft-restart of the MT4 server process. Destructive — requires ?confirm=true.
Manager (live) call to the wrapper's SrvRestart(). The current
manager connection is dropped during the restart cycle — clients
should expect the next request to surface a fresh login. Audit lines
are emitted on both sides of the wrapper call (independently of the
HTTP response).
The ?confirm=true guard rejects calls without the literal
query string. It is a deliberateness signal, NOT an authorization
mechanism — admin rights are still enforced separately.
Timeout: 60 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| tradePlatform | path | string (uuid) | yes | Trade platform id (GUID) |
| confirm | query | boolean | no | Required deliberateness flag — must equal true |
| X-Request-Timeout | header | number (double) | no | How long to wait for the trade server, in seconds (1–300). Default for this operation: 60 s (server maintenance). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header. |
Responses
- 200 Success — BooleanApiResponse
Example
curl -X POST "https://cloud.mywebapi.com/api/v2/MT4/$TRADE_PLATFORM_ID/SrvRestart" \
-H "Authorization: Bearer $TOKEN"