POST
/
api
/
v1
/
repositories
/
branches
Get repository branches
curl --request POST \
  --url https://zeropath.com/api/v1/repositories/branches \
  --header 'Content-Type: application/json' \
  --header 'X-ZeroPath-API-Token-Id: <api-key>' \
  --header 'X-ZeroPath-API-Token-Secret: <api-key>' \
  --data '{
  "organizationId": "<string>",
  "repositoryId": "<string>",
  "externalGithubRepositoryId": "<string>"
}'
{
  "defaultBranch": "<string>",
  "branches": [
    "<string>"
  ]
}

Authorizations

X-ZeroPath-API-Token-Id
string
header
required
X-ZeroPath-API-Token-Secret
string
header
required

Body

application/json
repositoryId
string
required
organizationId
string
externalGithubRepositoryId
string

Response

Successful response

defaultBranch
string
required
branches
string[]
required