Ploi API
Ploi API

Resume site

Resume a website in your server

POST api/servers/{server}/sites/{id}/resume

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/sites/{id}/resume" \
-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": "suspended",
        "server_id": 1,
        "domain": "suspend.examplehosting.com",
        "test_domain": null,
        "deploy_script": false,
        "web_directory": "/public",
        "project_type": null,
        "project_root": "/",
        "last_deploy_at": null,
        "system_user": "ploi",
        "php_version": "8.0",
        "health_url": null,
        "has_repository": false,
        "zero_downtime_deployment": false,
        "fastcgi_cache": false,
        "created_at": "2021-01-01 00:00:00"
    }
}