setDefaultBranch
Set a repository's default branch in Bitbucket Data Center to direct clones, pull requests, and new work to the intended branch.
Instructions
Set the default branch
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repoSlug": "<repoSlug>",
"branchId": "<branchId>"
},
"name": "setDefaultBranch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branchId | Yes | Branch ID (e.g. refs/heads/main) | |
| repoSlug | Yes | ||
| projectKey | No |