Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Database Backup Errors #83

Open
cygnusross opened this issue Mar 20, 2025 · 0 comments
Open

Create Database Backup Errors #83

cygnusross opened this issue Mar 20, 2025 · 0 comments

Comments

@cygnusross
Copy link
Contributor

The following call:

$ploi->servers($server->id)->databases($database->id)->backups()->create(
        $interval = 0,
        $type,
        $table_exclusions = null,
        $locations = '...',
        $path = null
    );

is throwing the error below:

{
  "message":"The selected type is invalid. (and 1 more error)",
  "errors":
  {
    "type":
    ["The selected type is invalid."],
    "keep_backup_amount":
    ["The keep backup amount field is required."]
  }
}

I've followed the API documentation and made a HTTP request with success, but the SDK doesn't look like it matches the API documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant