Repository Manipulation

Set default branch

Change default branch for a repository

post/repos/{repo_id}/default_branch

Request

  • Base URL
    https://api.diversion.dev/v0
  • Auth
    OAuth 2
    Implicithttps://auth.diversion.dev/oauth2/authorize
    Scopescoreapi/write

Request body

branch_idstring required

The branch ID to set as the default branch

Response

Request completed successfully

Changes

No recorded changes to this operation across all 1 revision of this API.