Get branch information
Return the Project's default branch and any branches requested by name.
Headers
API contract version. Defaults to the oldest supported version.
API contract version. Defaults to the oldest supported version.
Target project ID. Required when authenticating with an organization API key; ignored with project-scoped API keys (the project is resolved from the key).
Target project ID. Required when authenticating with an organization API key; ignored with project-scoped API keys (the project is resolved from the key).
Request body
Response
Branch information
Changes
Changed in 1 of the 3 revisions of this API.1217
- ▲
the
defaultBranchresponse's property type/format changed fromobjectnull/to/for status200response-property-type-changed
- ●
removed the optional property
defaultBranch/idfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
defaultBranch/namefrom the response with the200statusresponse-optional-property-removed
- ○
the endpoint scheme security
BearerAuthwas added to the APIapi-security-added
- ○
api tag
Projectaddedapi-tag-added
- ○
api tag
Branchesremovedapi-tag-removed
- ○
added the media type
text/htmlfor the response with the status400response-media-type-added
- ○
added the media type
text/htmlfor the response with the status401response-media-type-added
- ○
added the media type
text/htmlfor the response with the status403response-media-type-added
- ○
added the non-success response with the status
413response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ○
added
Branchsubschema #2to thedefaultBranchresponse propertyallOflist for the response status200response-property-all-of-added
- ○
the response property
branchesbecame required for the status200response-property-became-required
- ○
the response property
branches/items/idbecame required for the status200response-property-became-required
- ○
the response property
branches/items/namebecame required for the status200response-property-became-required
- ○
the response property
defaultBranchbecame required for the status200response-property-became-required
- ○
the response property
errorbecame required for the status400response-property-became-required
- ○
the response property
errorbecame required for the status401response-property-became-required
- ○
the response property
errorbecame required for the status403response-property-became-required
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲