latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Backups
Backup Settings

Enable or disable legacy backups

This function enables or disables legacy backups for a user.

get/toggle_user_backup_state

Query parameters

userstring username required
Example:username

The cPanel account's username.

legacy0 | 1

Whether the account should use the legacy backup system.

  • 1 - Use the legacy backup system.
  • 0 - Use the standard backup system.

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "toggle_user_backup_state",
    "reason": "Backup state modified",
    "result": 1,
    "version": 1
  }
}