{ "opencollection": "1.0.0", "info": { "name": "PlanetScale Platform Backups Databases API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "Databases", "type": "folder" }, "items": [ { "info": { "name": "List databases", "type": "http" }, "http": { "method": "GET", "url": "https://api.planetscale.com/v1/organizations/:organization/databases", "params": [ { "name": "organization", "value": "", "type": "path", "description": "The name of the organization." }, { "name": "page", "value": "", "type": "query", "description": "The page number for pagination." }, { "name": "per_page", "value": "", "type": "query", "description": "The number of results per page." } ] }, "docs": "Returns a list of all databases in the specified organization." }, { "info": { "name": "Create a database", "type": "http" }, "http": { "method": "POST", "url": "https://api.planetscale.com/v1/organizations/:organization/databases", "params": [ { "name": "organization", "value": "", "type": "path", "description": "The name of the organization." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new database in the specified organization." }, { "info": { "name": "Get a database", "type": "http" }, "http": { "method": "GET", "url": "https://api.planetscale.com/v1/organizations/:organization/databases/:database", "params": [ { "name": "organization", "value": "", "type": "path", "description": "The name of the organization." }, { "name": "database", "value": "", "type": "path", "description": "The name of the database." } ] }, "docs": "Returns details about a specific database, including its configuration, state, and production branch information." }, { "info": { "name": "Update database settings", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.planetscale.com/v1/organizations/:organization/databases/:database", "params": [ { "name": "organization", "value": "", "type": "path", "description": "The name of the organization." }, { "name": "database", "value": "", "type": "path", "description": "The name of the database." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates settings for a specific database, such as production branch protection, insights, and default branch." }, { "info": { "name": "Delete a database", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.planetscale.com/v1/organizations/:organization/databases/:database", "params": [ { "name": "organization", "value": "", "type": "path", "description": "The name of the organization." }, { "name": "database", "value": "", "type": "path", "description": "The name of the database." } ] }, "docs": "Deletes a database and all of its branches. This action is irreversible." } ] } ], "bundled": true }