Request the list of Branches for a given Project
GET /api
Also reachable at /api, /api.
Path Parameters
projectIdstring (required)
ID of the project.spaceIdstring (required)
The ID of the space containing the resource(s).
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. Minimum0.takeinteger
Number of items to take. Defaults to 30. Minimum0.
Response
200 — The requested list of Branches
Idstring
Gets or sets a unique identifier for this resource.ItemTypestringItemsarray of objectCanonicalNamestring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.IsProtectedbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Namestring
Minimum length 1.
ItemsPerPageintegerLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LastPageNumberintegerLinksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NumberOfPagesintegerTotalResultsinteger
Example Response
{
"Id": "string",
"ItemType": "string",
"Items": [
{
"CanonicalName": "string",
"Id": "string",
"IsProtected": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string"
}
],
"ItemsPerPage": 0,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LastPageNumber": 0,
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NumberOfPages": 0,
"TotalResults": 0
}Create a branch given a project, the base git ref, and the new branch’s name
POST /api
Also reachable at /api, /api.
Path Parameters
projectIdstring (required)spaceIdstring (required)
The ID of the space containing the resource(s).
Request Body
BaseGitRefstring (required)NewBranchNamestring (required)
Minimum length 1.ProjectIdstring (required)SpaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — The newly-created Branch
CanonicalNamestring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.IsProtectedbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Namestring
Minimum length 1.
Example Request
{
"BaseGitRef": "string",
"NewBranchName": "string",
"ProjectId": "Projects-1",
"SpaceId": "Spaces-1"
}Example Response
{
"CanonicalName": "string",
"Id": "string",
"IsProtected": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string"
}Get a Git branch by name
GET /api
Also reachable at /api, /api.
Gets a named version control branch for a project.
Path Parameters
branchNamestring (required)
Name of the branch.projectIdstring (required)
ID of the project.spaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — The requested Branch
CanonicalNamestring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.IsProtectedbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Namestring
Minimum length 1.
Example Response
{
"CanonicalName": "string",
"Id": "string",
"IsProtected": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string"
}Get a Git commit by hash
GET /api
Also reachable at /api, /api.
Gets a git commit for a project.
Path Parameters
hashstring (required)
Hash of the commit.projectIdstring (required)
ID of the project.spaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — The requested Commit
CanonicalNamestring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Namestring
Minimum length 1.
Example Response
{
"CanonicalName": "string",
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string"
}Get a Git named reference by name
GET /api
Also reachable at /api, /api.
Gets a named version control reference for a project.
Path Parameters
projectIdstring (required)
ID of the project.refNamestring (required)
Name of the git reference.spaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — The requested Named Git Reference
CanonicalNamestring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.IsProtectedbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Namestring
Minimum length 1.
Example Response
{
"CanonicalName": "string",
"Id": "string",
"IsProtected": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string"
}Request a list of Git Tags for the project
GET /api
Also reachable at /api, /api.
Path Parameters
projectIdstring (required)
ID of the project.spaceIdstring (required)
The ID of the space containing the resource(s).
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. Minimum0.takeinteger
Number of items to take. Defaults to 30. Minimum0.
Response
200 — The requested Git Tags
Idstring
Gets or sets a unique identifier for this resource.ItemTypestringItemsarray of objectCanonicalNamestring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Namestring
Minimum length 1.
ItemsPerPageintegerLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LastPageNumberintegerLinksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NumberOfPagesintegerTotalResultsinteger
Example Response
{
"Id": "string",
"ItemType": "string",
"Items": [
{
"CanonicalName": "string",
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string"
}
],
"ItemsPerPage": 0,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LastPageNumber": 0,
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NumberOfPages": 0,
"TotalResults": 0
}Get an individual Git Tag; searching for it by Name
GET /api
Also reachable at /api, /api.
Path Parameters
projectIdstring (required)
ID of the project.spaceIdstring (required)
The ID of the space containing the resource(s).tagNamestring (required)
Name of the tag.
Response
200 — The requested Tag
CanonicalNamestring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Namestring
Minimum length 1.
Example Response
{
"CanonicalName": "string",
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string"
}