Branches
Get a Git branch by name
Gets a named version control branch for a project.
get/{spaceId}/projects/{projectId}/git/branches/{branchName}
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/{spaceId}/projects/{projectId}/git/branches/{branchName}
- Auth
- API key in header X-Octopus-ApiKey
- or API key in query parameter ApiKey
- or API key in header X-NuGet-ApiKey
Path parameters
spaceIdstring required
The ID of the space containing the resource(s).
projectIdstring required
ID of the project
branchNamestring required
Name of the branch
Response
The requested Branch
Example response
{
"Links": {
"Self": "/api/..."
}
}Changes
No recorded changes to this operation across all 13 revisions of this API.