Ploi API

Detail insight

Get the explanation details as raw HTML in the response

GET api/servers/{server}/insights/{id}/detail

Example request:

curl -X GET "{server}/insights/{id}/detail" \
-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": 1,
        "description": "Your **supervisor** service is running, but you do not seem to use it. You can save resources by stopping this service, you can always start it when you need it.",
        "html": "<h2>Explanation</h2>\n<p>\n    Running services without actually using them, is a waste, we don't like waste. That's why it is smart to stop service that you don't use anyway, this will save resources.\n</p>\n\n<h3>Fix that will be run</h3>\n\n<p>\n    Ploi will run <code>service supervisor stop</code> and clear out the log file <code>/var/log/supervisor/supervisord.log</code>.\n</p>"