Repositories

Set default branch

Set the default branch for repository scans and PRs

post/api/v1/repositories/set-default-branch

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring required

Organization containing the repository

repositoryIdstring required

Repository to update

defaultBranchstring required

Name of the branch to set as default (e.g., "main", "master")

Response

Successful response

okboolean

Changes

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