Ploi API

Flush FastCGI cache

In order to use FastCGI cache you will need to have a paid subscription.

Flushes FastCGI cache for your site

POST api/servers/{server}/sites/{site}/fastcgi-cache/flush

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/sites/{site}/fastcgi-cache/flush" \
-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,
        "status": "active",
        "server_id": 1,
        "domain": "awesome.com",
        "deploy_script": false,
        "web_directory": "/public",
        "project_type": null,
        "project_root": "/",
        "last_deploy_at": null,
        "system_user": "ploi",
        "php_version": 7.4,
        "health_url": null,
        "notification_urls": {
            "slack": null,
            "discord": null,
            "webhook": null
        },
        "has_repository": false,
        "zero_downtime_deployment": false,
        "created_at": "2020-08-03 11:23:48"
    }
}