post https://api.planetscale.com/v1/organizations//databases//branches
Authorization
A service token or OAuth token must have the following access or scopes in order to use this API endpoint:
Service Token Accesses
create_branch
, restore_production_branch_backup
, restore_backup
OAuth Scopes
Resource | Scopes |
---|---|
Organization | write_branches , restore_production_branch_backups , restore_backups |
Database | write_branches , restore_production_branch_backups , restore_backups |
Branch | restore_backups |
With this endpoint, you can create a branch from a backup. For a service token, you will need create_branch
and either restore_production_branch_backup
or restore_branch_backup
accesses. For OAuth, you will need write_branches
and either restore_production_branch_backups
or restore_backups
.