Ploi API
Ploi API

Toggle backup

Toggle a backup active or inactive

PATCH api/servers/{server}/databases/{database}/backups/{backup}/toggle

Example request:

curl -X PATCH "https://ploi.io/api/servers/{server}/databases/{database}/backups/{backup}/toggle" \
-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,
        "type": "dropbox",
        "type_human": "Dropbox",
        "path": null,
        "locations": null,
        "interval": 20,
        "table_exclusions": null,
        "active": true,
        "last_backup_at": null,
        "created_at": "2019-08-07 13:43:20"
    }
}