Authorizations
Path Parameters
The name of the organization the branch belongs to
The name of the database the branch belongs to
Body
The name of the branch
Parent branch
If provided, restores the backup's schema and data to the new branch. Must have restore_production_branch_backup(s)
or restore_backup(s)
access to do this.
The region to create the branch in. If not provided, the branch will be created in the default region for its database.
Restore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases.
If provided, restores the last successful backup's schema and data to the new branch. Must have restore_production_branch_backup(s)
or restore_backup(s)
access to do this, in addition to Data Branching™ being enabled for the branch.
last_successful_backup
The database cluster size is required if a backup_id is provided. Options: PS_10, PS_20, PS_40, ..., PS_2800
Response
Returns the created branch
The ID of the branch
The name of the branch
When the branch was created
When the branch was last updated
When the branch was deleted
When a user last marked a backup restore checklist as completed
When the schema for the branch was last updated
The kind of branch
mysql
, postgresql
The MySQL address for the branch
The address of the MySQL provider for the branch
The current state of the branch
pending
, sleep_in_progress
, sleeping
, awakening
, ready
The size of the vtgate cluster for the branch
The number of vtgate instances in the branch
The SKU representing the branch's cluster size
IOPS for the cluster
Whether or not the branch is ready to serve queries
Whether or not the schema is ready for queries
Whether or not this is a metal database
Whether or not the branch is a production branch
Whether or not the branch has safe migrations enabled
Whether or not the branch is sharded
The number of shards in the branch
Whether or not the branch has a stale schema
True if private connections are enabled
True if the branch has replica servers
True if the branch has read-only replica servers
Planetscale app URL for the branch
Planetscale API URL for the branch
The name of the parent branch from which the branch was created