Refresh OPCache

This will refresh the OPCache on this server

POST api/servers/{server}/refresh-opcache

Example request:

curl -X post "https://ploi.io/api/servers/{server}/refresh-opcache" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": {
        "id": 58,
        "name": "server-name",
        "ip_address": "127.0.0.1",
        "php_version": 7.2,
        "mysql_version": 5.7,
        "sites_count": 1,
        "status": "Server active",
        "created_at": "2018-09-07 16:08:34"
    }
}