Repositories
Change the default branch
Starts an idempotent default-branch change guarded by expectedVersion. Returns 200 when complete or 202 while native work remains pending. Requires authenticated authority and enforces current resource policy.
put/api/repos/{owner}/{repo}/settings/default-branch/
Request
- Base URLhttps://git.cafe
- Auth
- API key in cookie gc-session
- or HTTP bearer
- or HTTP basic
- or HTTP token
- or OAuth 2Authorization code: /api/oauth/authorizeToken URL: /api/oauth/token scopes: repo:administration:admin
Path parameters
ownerstring required
repostring required
Request body
Response
Response for status 200
Changes
No recorded changes to this operation across all 1 revision of this API.