Browse/PlanetScale/Create a Database Branch
Create a Database Branch
PlanetScale
$19 · Pro
Create a new branch of a PlanetScale database via the API.
create-database-branch.ts
const response = await fetch(`https://api.planetscale.com/v1/organizations/${organization}/databases/${database}/branches`, {
Unlock the full snippet
This is a Pro snippet — get all-access for $19, or unlock just this one snippet for $1.
Create a Database Branch — PlanetScale Example (TypeScript, Node, Python, Go, PHP, Ruby) | apiexamples