Ploi API

Toggle quick deploy

Enables or disables quick deploy for your repository, when it is enabled it will disable and vice versa.

POST api/servers/{server}/sites/{site}/repository/quick-deploy

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/sites/{site}/repository/quick-deploy" \
-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": "example.com",
        "test_domain": null,
        "deploy_script": "cd /home/ploi/example.com\ngit pull origin main\ncomposer install --no-interaction --prefer-dist --optimize-autoloader\necho \"\" | sudo -S service php8.0-fpm reload\n\necho \"🚀 Application deployed!\"\n",
        "web_directory": "/public",
        "project_type": null,
        "project_root": "/",
        "last_deploy_at": "2021-08-24 14:38:00",
        "system_user": "ploi",
        "php_version": "8.0",
        "health_url": null,
        "has_repository": false,
        "zero_downtime_deployment": false,
        "fastcgi_cache": false,
        "created_at": "2021-08-24 16:37:31"
    },
    "message": "Quick deploy has been enabled"
}