Branches
Create a branch given a project, the base git ref, and the new branch's name
post/{spaceId}/projects/{projectId}/git/branches/v2
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/{spaceId}/projects/{projectId}/git/branches/v2
- 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
Request body
Example request
{
"ProjectId": "Projects-1",
"SpaceId": "Spaces-1"
}Response
The newly-created Branch
Example response
{
"Links": {
"Self": "/api/..."
}
}Changes
No recorded changes to this operation across all 13 revisions of this API.