Branches
Request the list of Branches for a given Project
get/projects/{projectId}/git/branches
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/projects/{projectId}/git/branches
- 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
projectIdstring required
ID of the project
Query parameters
searchByNamestring
A partial or complete name to search on. This will perform a "contains" style match against the supplied name or name-fragment
skipinteger
Number of items to skip. Defaults to zero
takeinteger
Number of items to take. Defaults to 30
Response
The requested list of Branches
Example response
{
"Items": [
{
"Links": {
"Self": "/api/..."
}
}
],
"ItemsPerPage": 30,
"ItemType": "GitBranch",
"LastPageNumber": 1,
"Links": {
"Self": "/api/..."
},
"NumberOfPages": 2,
"TotalResults": 42
}Changes
No recorded changes to this operation across all 13 revisions of this API.