Database Branch by Name
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name
This path allows interacting with a given database branch, referenced by parameter `db_branch_name`, which is expected in the format `database_name:branch_name`.
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
db_branch_name | The DBBranchName matches the pattern `{db_name}:{branch_name}`. | path | ✅ | string |
Get Branch Schema and Metadata
GEThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name
Responses
Create Database Branch
PUThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
from | Name of source branch to branch the new schema from | query | - | string |
Request Body Type Definition
Responses
Delete Database Branch
DELETEhttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name
Delete the branch in the database and all its resources