Ploi API
Ploi API

Delete insight

Deletes a insight in your server

DELETE api/servers/{server}/insights/{id}

Example request:

curl -X DELETE "https://ploi.io/api/servers/{server}/insights/{id}" \
-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": [],
    "links": {
        "first": "https://ploi.io/api/servers/1/insights/1?page=1",
        "last": "https://ploi.io/api/servers/1/insights/1?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": null,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "«",
                "active": false
            },
            {
                "url": "https://ploi.io/api/servers/1/insights/1?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "»",
                "active": false
            }
        ],
        "path": "https://ploi.io/api/servers/1/insights/1",
        "per_page": 15,
        "to": null,
        "total": 0
    }
}