Optional
options: IRequestOptionsStatic
Readonly
RESOURCE_Optional
apiVersion: stringObject containing details of tag to be created.
Project ID or project name
ID or name of the repository.
Attach a new file to a pull request.
Content to upload
The name of the file.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Cherry pick a specific commit or commits that are associated to a pull request into a new branch.
Project ID or project name
ID of the repository.
Create a comment on a specific thread in a pull request (up to 500 comments can be created per thread).
The comment to create. Comments can be up to 150,000 characters.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the thread that the desired comment is in.
Optional
project: stringProject ID or project name
Creates a ref favorite
The ref favorite to create.
Project ID or project name
Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the repositories endpoint
Source repository and ref mapping.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
includeLinks: booleanTrue to include links
Create an import request.
The import request to create.
Project ID or project name
The name or ID of the repository.
Add a like on a comment.
The repository ID of the pull request's target branch.
ID of the pull request.
The ID of the thread that contains the comment.
The ID of the comment.
Optional
project: stringProject ID or project name
Request a git merge operation. Currently we support merging only 2 commits.
Parents commitIds and merge commit messsage.
Project ID or project name
The name or ID of the repository.
Optional
includeLinks: booleanTrue to include links
Create a pull request.
The pull request to create.
The repository ID of the pull request's target branch.
Optional
project: stringProject ID or project name
Optional
supportsIterations: booleanIf true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.
Create a pull request status on the iteration. This operation will have the same result as Create status on pull request with specified iteration ID in the request body.
Pull request status to create.
The repository ID of the pull request’s target branch.
ID of the pull request.
ID of the pull request iteration.
Optional
project: stringProject ID or project name
Create a tag (if that does not exists yet) and add that as a label (tag) for a specified pull request. The only required field is the name of the new label (tag).
Label to assign to the pull request.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Optional
projectId: stringProject ID or project name.
Add a reviewer to a pull request or cast a vote.
Reviewer's vote.
If the reviewer's ID is included here, it must match the reviewerID parameter.
Reviewers can set their own vote with this method. When adding other reviewers, vote must be set to zero.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the reviewer.
Optional
project: stringProject ID or project name
Add reviewers to a pull request.
Reviewers to add to the pull request.
The repository ID of the pull request's target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Create a pull request status.
Pull request status to create.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Create a git repository in a team project.
Specify the repo name, team project and/or parent repository. Team project information can be omitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id).
Optional
project: stringProject ID or project name
Optional
sourceRef: string[optional] Specify the source refs to use while creating a fork repo
Optional
apiVersion: stringStarts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.
Project ID or project name
ID of the repository.
Create a thread in a pull request.
The thread to create. Thread must contain at least one comment.
Repository ID of the pull request's target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Add an unmaterialized identity to the reviewers of a pull request.
Reviewer to add to the pull request.
The repository ID of the pull request's target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Delete a pull request attachment.
The name of the attachment to delete.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Delete a comment associated with a specific thread in a pull request.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the thread that the desired comment is in.
ID of the comment.
Optional
project: stringProject ID or project name
DELETE Deletes Enablement status and BillableCommitters data from DB. Deleting the enablement data will effectively disable it for the repositories affected.
Optional
includeBillableCommitters: booleanOptional
projectIds: string[]Delete a like on a comment.
The repository ID of the pull request's target branch.
ID of the pull request.
The ID of the thread that contains the comment.
The ID of the comment.
Optional
project: stringProject ID or project name
Delete pull request iteration status.
The repository ID of the pull request’s target branch.
ID of the pull request.
ID of the pull request iteration.
ID of the pull request status.
Optional
project: stringProject ID or project name
Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted.
The repository ID of the pull request’s target branch.
ID of the pull request.
The name or ID of the label requested.
Optional
project: stringProject ID or project name
Optional
projectId: stringProject ID or project name.
Remove a reviewer from a pull request.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the reviewer to remove.
Optional
project: stringProject ID or project name
Delete pull request status.
The repository ID of the pull request’s target branch.
ID of the pull request.
ID of the pull request status.
Optional
project: stringProject ID or project name
Deletes the refs favorite specified
Project ID or project name
The Id of the ref favorite to delete.
Delete a git repository
The ID of the repository.
Optional
project: stringProject ID or project name
Destroy (hard delete) a soft-deleted Git repository.
Project ID or project name
The ID of the repository.
Get an annotated tag.
Project ID or project name
ID or name of the repository.
ObjectId (Sha1Id) of tag to get.
Get the file content of a pull request attachment.
The name of the attachment.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Get a list of files attached to a given pull request.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Get the file content of a pull request attachment.
The name of the attachment.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Retrieve actual billable committers for Advanced Security service for a given date.
Project ID or project name
Optional
billingDate: DateUTC expected. If not specified defaults to the previous billing day.
Optional
skip: numberSkip X rows of resultset to simulate paging.
Optional
take: numberReturn Y rows of resultset to simulate paging.
Retrieve detailed actual billable committers for Advanced Security service for a given date. Detailed results intentionally does not filter out soft deleted projects and repositories to help diagnose billing issues.
Project ID or project name
Return all the details on the billable committers.
Optional
billingDate: DateUTC expected. If not specified defaults to the previous billing day.
Get a single blob.
The name or ID of the repository.
SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
Optional
project: stringProject ID or project name
Optional
download: booleanIf true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
Optional
fileName: stringProvide a fileName to use for a download.
Optional
resolveLfs: booleanIf true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
Get a single blob.
The name or ID of the repository.
SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
Optional
project: stringProject ID or project name
Optional
download: booleanIf true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
Optional
fileName: stringProvide a fileName to use for a download.
Optional
resolveLfs: booleanIf true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
Gets one or more blobs in a zip file download.
Blob IDs (SHA1 hashes) to be returned in the zip file.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
filename: stringGet a single blob.
The name or ID of the repository.
SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/Get Item" endpoint.
Optional
project: stringProject ID or project name
Optional
download: booleanIf true, prompt for a download rather than rendering in a browser. Note: this value defaults to true if $format is zip
Optional
fileName: stringProvide a fileName to use for a download.
Optional
resolveLfs: booleanIf true, try to resolve a blob to its LFS contents, if it's an LFS pointer file. Only compatible with octet-stream Accept headers or $format types
Retrieve statistics about a single branch.
The name or ID of the repository.
Name of the branch.
Optional
project: stringProject ID or project name
Optional
baseVersionDescriptor: GitVersionDescriptorIdentifies the commit or branch to use as the base.
Retrieve statistics about all branches within a repository.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
baseVersionDescriptor: GitVersionDescriptorIdentifies the commit or branch to use as the base.
Retrieve statistics for multiple commits
Base Commit and List of Target Commits to compare.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Retrieve changes for a particular commit.
The id of the commit.
The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
Optional
project: stringProject ID or project name
Optional
top: numberThe maximum number of changes to return.
Optional
skip: numberThe number of changes to skip.
Retrieve information about a cherry pick operation by cherry pick Id.
Project ID or project name
ID of the cherry pick.
ID of the repository.
Retrieve one conflict for a cherry pick by ID
Optional
project: stringProject ID or project name
Retrieve all conflicts for a cherry pick
Optional
project: stringProject ID or project name
Optional
continuationToken: stringOptional
top: numberOptional
excludeResolved: booleanOptional
onlyResolved: booleanOptional
includeObsolete: booleanRetrieve information about a cherry pick operation for a specific branch. This operation is expensive due to the underlying object structure, so this API only looks at the 1000 most recent cherry pick operations.
Project ID or project name
ID of the repository.
The GitAsyncRefOperationParameters generatedRefName used for the cherry pick operation.
Given a commitId, returns a list of commits that are in the same cherry-pick family.
Optional
project: stringProject ID or project name
Optional
includeLinks: booleanRetrieve a comment associated with a specific thread in a pull request.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the thread that the desired comment is in.
ID of the comment.
Optional
project: stringProject ID or project name
Retrieve all comments associated with a specific thread in a pull request.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the thread.
Optional
project: stringProject ID or project name
Retrieve a particular commit.
The id of the commit.
The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
Optional
project: stringProject ID or project name
Optional
changeCount: numberThe number of changes to include in the result.
Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
diffCommonCommit: booleanIf true, diff between common and target commits. If false, diff between base and target commits.
Optional
top: numberMaximum number of changes to return. Defaults to 100.
Optional
skip: numberNumber of changes to skip
Optional
baseVersionDescriptor: GitBaseVersionDescriptorDescriptor for base commit.
Optional
targetVersionDescriptor: GitTargetVersionDescriptorDescriptor for target commit.
Retrieve git commits for a project
The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
Optional
project: stringProject ID or project name
Optional
skip: numberOptional
top: numberRetrieve git commits for a project matching the search criteria
Search options
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
skip: numberNumber of commits to skip. The value cannot exceed 3,000,000.
Optional
top: numberMaximum number of commits to return. The value cannot exceed 50,000.
Optional
includeStatuses: booleanTrue to include additional commit status information.
Retrieve deleted git repositories.
Project ID or project name
GET Enablement status for project's repositories.
Optional
projectIds: string[]Null defaults to all projects in the host, list of project's repos status to return
Optional
billingDate: DateUTC expected, Null defaults to UtcNow(), can be provided for a point in time status
Optional
skip: numberSkip X rows of resultset to simulate paging.
Optional
take: numberReturn Y rows of resultset to simulate paging.
Get estimated billable committers for a repository for the last 90 days.
Project ID or project name
Get estimated billable pushers for an Organization for last 90 days.
Get estimated billable pushers for a project for last 90 days.
Project ID or project name
Get the file diffs for each of the specified files
List of file parameters objects
Project ID or project name
The name or ID of the repository
Retrieve all forks of a repository in the collection.
The name or ID of the repository.
Team project collection ID.
Optional
project: stringProject ID or project name
Optional
includeLinks: booleanTrue to include links.
Get a specific fork sync operation's details.
The name or ID of the repository.
OperationId of the sync request.
Optional
project: stringProject ID or project name
Optional
includeLinks: booleanTrue to include links.
Retrieve all requested fork sync operations on this repository.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
includeAbandoned: booleanTrue to include abandoned requests.
Optional
includeLinks: booleanTrue to include links.
Retrieve a particular import request.
Project ID or project name
The name or ID of the repository.
The unique identifier for the import request.
Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
The name or ID of the repository.
The item path.
Optional
project: stringProject ID or project name
Optional
scopePath: stringThe path scope. The default is null.
Optional
recursionLevel: VersionControlRecursionTypeThe recursion level of this request. The default is 'none', no recursion.
Optional
includeContentMetadata: booleanSet to true to include content metadata. Default is false.
Optional
latestProcessedChange: booleanSet to true to include the latest changes. Default is false.
Optional
download: booleanSet to true to download the response as a file. Default is false.
Optional
versionDescriptor: GitVersionDescriptorVersion descriptor. Default is the default branch for the repository.
Optional
includeContent: booleanSet to true to include item content when requesting json. Default is false.
Optional
resolveLfs: booleanSet to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
Optional
sanitize: booleanSet to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
The name or ID of the repository.
The item path.
Optional
project: stringProject ID or project name
Optional
scopePath: stringThe path scope. The default is null.
Optional
recursionLevel: VersionControlRecursionTypeThe recursion level of this request. The default is 'none', no recursion.
Optional
includeContentMetadata: booleanSet to true to include content metadata. Default is false.
Optional
latestProcessedChange: booleanSet to true to include the latest changes. Default is false.
Optional
download: booleanSet to true to download the response as a file. Default is false.
Optional
versionDescriptor: GitVersionDescriptorVersion descriptor. Default is the default branch for the repository.
Optional
includeContent: booleanSet to true to include item content when requesting json. Default is false.
Optional
resolveLfs: booleanSet to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
Optional
sanitize: booleanSet to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
Get Item Metadata and/or Content for a collection of items. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
scopePath: stringThe path scope. The default is null.
Optional
recursionLevel: VersionControlRecursionTypeThe recursion level of this request. The default is 'none', no recursion.
Optional
includeContentMetadata: booleanSet to true to include content metadata. Default is false.
Optional
latestProcessedChange: booleanSet to true to include the latest changes. Default is false.
Optional
download: booleanSet to true to download the response as a file. Default is false.
Optional
includeLinks: booleanSet to true to include links to items. Default is false.
Optional
versionDescriptor: GitVersionDescriptorVersion descriptor. Default is the default branch for the repository.
Optional
zipForUnix: booleanSet to true to keep the file permissions for unix (and POSIX) systems like executables and symlinks
Post for retrieving a creating a batch out of a set of items in a repo / project given a list of paths or a long path
Request data attributes: ItemDescriptors, IncludeContentMetadata, LatestProcessedChange, IncludeLinks. ItemDescriptors: Collection of items to fetch, including path, version, and recursion level. IncludeContentMetadata: Whether to include metadata for all items LatestProcessedChange: Whether to include shallow ref to commit that last changed each item. IncludeLinks: Whether to include the _links field on the shallow references.
The name or ID of the repository
Optional
project: stringProject ID or project name
Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
The name or ID of the repository.
The item path.
Optional
project: stringProject ID or project name
Optional
scopePath: stringThe path scope. The default is null.
Optional
recursionLevel: VersionControlRecursionTypeThe recursion level of this request. The default is 'none', no recursion.
Optional
includeContentMetadata: booleanSet to true to include content metadata. Default is false.
Optional
latestProcessedChange: booleanSet to true to include the latest changes. Default is false.
Optional
download: booleanSet to true to download the response as a file. Default is false.
Optional
versionDescriptor: GitVersionDescriptorVersion descriptor. Default is the default branch for the repository.
Optional
includeContent: booleanSet to true to include item content when requesting json. Default is false.
Optional
resolveLfs: booleanSet to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
Optional
sanitize: booleanSet to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
The name or ID of the repository.
The item path.
Optional
project: stringProject ID or project name
Optional
scopePath: stringThe path scope. The default is null.
Optional
recursionLevel: VersionControlRecursionTypeThe recursion level of this request. The default is 'none', no recursion.
Optional
includeContentMetadata: booleanSet to true to include content metadata. Default is false.
Optional
latestProcessedChange: booleanSet to true to include the latest changes. Default is false.
Optional
download: booleanSet to true to download the response as a file. Default is false.
Optional
versionDescriptor: GitVersionDescriptorVersion descriptor. Default is the default branch for the repository.
Optional
includeContent: booleanSet to true to include item content when requesting json. Default is false.
Optional
resolveLfs: booleanSet to true to resolve Git LFS pointer files to return actual content from Git LFS. Default is false.
Optional
sanitize: booleanSet to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
Get likes for a comment.
The repository ID of the pull request's target branch.
ID of the pull request.
The ID of the thread that contains the comment.
The ID of the comment.
Optional
project: stringProject ID or project name
Find the merge bases of two commits, optionally across forks. If otherRepositoryId is not specified, the merge bases will only be calculated within the context of the local repositoryNameOrId.
ID or name of the local repository.
First commit, usually the tip of the target branch of the potential merge.
Other commit, usually the tip of the source branch of the potential merge.
Optional
project: stringProject ID or project name
Optional
otherCollectionId: stringThe collection ID where otherCommitId lives.
Optional
otherRepositoryId: stringThe repository ID where otherCommitId lives.
Get a specific merge operation's details.
Project ID or project name
The name or ID of the repository.
OperationId of the merge request.
Optional
includeLinks: booleanTrue to include links
GET Advanced Security Permission status.
Optional
projectName: stringOptional
repositoryId: stringRepository user is trying to access
Optional
permission: stringPermission being requestd, must be "viewAlert" "dismissAlert" "manage" "viewEnablement" or "repoRead"
Retrieve a pull request.
The repository ID of the pull request's target branch.
The ID of the pull request to retrieve.
Optional
project: stringProject ID or project name
Optional
maxCommentLength: numberNot used.
Optional
skip: numberNot used.
Optional
top: numberNot used.
Optional
includeCommits: booleanIf true, the pull request will be returned with the associated commits.
Optional
includeWorkItemRefs: booleanIf true, the pull request will be returned with the associated work item references.
Retrieve a pull request.
The ID of the pull request to retrieve.
Optional
project: stringProject ID or project name
Get the commits for the specified pull request.
ID or name of the repository.
ID of the pull request.
Optional
project: stringProject ID or project name
Retrieve one conflict for a pull request by ID
Optional
project: stringProject ID or project name
Retrieve all conflicts for a pull request
The repository of the Pull Request.
The pull request ID.
Optional
project: stringProject ID or project name
Optional
skip: numberConflicts to skip.
Optional
top: numberConflicts to return after skip.
Optional
includeObsolete: booleanIncludes obsolete conflicts.
Optional
excludeResolved: booleanExcludes conflicts already resolved.
Optional
onlyResolved: booleanReturns only the conflicts that are resolved.
Get the specified iteration for a pull request.
ID or name of the repository.
ID of the pull request.
ID of the pull request iteration to return.
Optional
project: stringProject ID or project name
Retrieve the changes made in a pull request between two iterations.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the pull request iteration.
Iteration one is the head of the source branch at the time the pull request is created and subsequent iterations are created when there are pushes to the source branch. Allowed values are between 1 and the maximum iteration on this pull request.
Optional
project: stringProject ID or project name
Optional
top: numberOptional. The number of changes to retrieve. The default value is 100 and the maximum value is 2000.
Optional
skip: numberOptional. The number of changes to ignore. For example, to retrieve changes 101-150, set top 50 and skip to 100.
Optional
compareTo: numberID of the pull request iteration to compare against. The default value is zero which indicates the comparison is made against the common commit between the source and target branches
Get the commits for the specified iteration of a pull request.
ID or name of the repository.
ID of the pull request.
ID of the iteration from which to get the commits.
Optional
project: stringProject ID or project name
Optional
top: numberMaximum number of commits to return. The maximum number of commits that can be returned per batch is 500.
Optional
skip: numberNumber of commits to skip.
Get the list of iterations for the specified pull request.
ID or name of the repository.
ID of the pull request.
Optional
project: stringProject ID or project name
Optional
includeCommits: booleanIf true, include the commits associated with each iteration in the response.
Get the specific pull request iteration status by ID. The status ID is unique within the pull request across all iterations.
The repository ID of the pull request’s target branch.
ID of the pull request.
ID of the pull request iteration.
ID of the pull request status.
Optional
project: stringProject ID or project name
Get all the statuses associated with a pull request iteration.
The repository ID of the pull request’s target branch.
ID of the pull request.
ID of the pull request iteration.
Optional
project: stringProject ID or project name
Retrieves a single label (tag) that has been assigned to a pull request.
The repository ID of the pull request’s target branch.
ID of the pull request.
The name or ID of the label requested.
Optional
project: stringProject ID or project name
Optional
projectId: stringProject ID or project name.
Get all the labels (tags) assigned to a pull request.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Optional
projectId: stringProject ID or project name.
Get external properties of the pull request.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
This API is used to find what pull requests are related to a given commit. It can be used to either find the pull request that created a particular merge commit or it can be used to find all pull requests that have ever merged a particular commit. The input is a list of queries which each contain a list of commits. For each commit that you search against, you will get back a dictionary of commit -> pull requests.
The list of queries to perform.
ID of the repository.
Optional
project: stringProject ID or project name
Retrieve information about a particular reviewer on a pull request
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the reviewer.
Optional
project: stringProject ID or project name
Retrieve the reviewers for a pull request
The repository ID of the pull request's target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Retrieve all pull requests matching a specified criteria.
The repository ID of the pull request's target branch.
Pull requests will be returned that match this search criteria.
Optional
project: stringProject ID or project name
Optional
maxCommentLength: numberNot used.
Optional
skip: numberThe number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
Optional
top: numberThe number of pull requests to retrieve.
Retrieve all pull requests matching a specified criteria.
Project ID or project name
Pull requests will be returned that match this search criteria.
Optional
maxCommentLength: numberNot used.
Optional
skip: numberThe number of pull requests to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
Optional
top: numberThe number of pull requests to retrieve.
Get the specific pull request status by ID. The status ID is unique within the pull request across all iterations.
The repository ID of the pull request’s target branch.
ID of the pull request.
ID of the pull request status.
Optional
project: stringProject ID or project name
Get all the statuses associated with a pull request.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Retrieve a thread in a pull request.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the thread.
Optional
project: stringProject ID or project name
Optional
iteration: numberIf specified, thread position will be tracked using this iteration as the right side of the diff.
Optional
baseIteration: numberIf specified, thread position will be tracked using this iteration as the left side of the diff.
Retrieve a list of work items associated with a pull request.
ID or name of the repository.
ID of the pull request.
Optional
project: stringProject ID or project name
Retrieves a particular push.
The name or ID of the repository.
ID of the push.
Optional
project: stringProject ID or project name
Optional
includeCommits: numberThe number of commits to include in the result.
Optional
includeRefUpdates: booleanIf true, include the list of refs that were updated by the push.
Retrieve a list of commits associated with a particular push.
The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
The id of the push.
Optional
project: stringProject ID or project name
Optional
top: numberThe maximum number of commits to return ("get the top x commits").
Optional
skip: numberThe number of commits to skip.
Optional
includeLinks: booleanSet to false to avoid including REST Url links for resources. Defaults to true.
Retrieves pushes associated with the specified repository.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
skip: numberNumber of pushes to skip.
Optional
top: numberNumber of pushes to return.
Optional
searchCriteria: GitPushSearchCriteriaSearch criteria attributes: fromDate, toDate, pusherId, refName, includeRefUpdates or includeLinks. fromDate: Start date to search from. toDate: End date to search to. pusherId: Identity of the person who submitted the push. refName: Branch name to consider. includeRefUpdates: If true, include the list of refs that were updated by the push. includeLinks: Whether to include the _links field on the shallow references.
Retrieve soft-deleted git repositories from the recycle bin.
Project ID or project name
Gets the refs favorite for a favorite Id.
Project ID or project name
The Id of the requested ref favorite.
Gets the refs favorites for a repo and an identity.
Project ID or project name
Optional
repositoryId: stringThe id of the repository.
Optional
identityId: stringThe id of the identity whose favorites are to be retrieved. If null, the requesting identity is used.
Project ID or project name
Optional
identityId: stringQueries the provided repository for its refs and returns them.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
filter: string[optional] A filter to apply to the refs (starts with).
Optional
includeLinks: boolean[optional] Specifies if referenceLinks should be included in the result. default is false.
Optional
includeStatuses: boolean[optional] Includes up to the first 1000 commit statuses for each ref. The default value is false.
Optional
includeMyBranches: boolean[optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter.
Optional
latestStatusesOnly: boolean[optional] True to include only the tip commit status for each ref. This option requires includeStatuses
to be true. The default value is false.
Optional
peelTags: boolean[optional] Annotated tags will populate the PeeledObjectId property. default is false.
Optional
filterContains: string[optional] A filter to apply to the refs (contains).
Retrieve git repositories.
Optional
project: stringProject ID or project name
Optional
includeLinks: boolean[optional] True to include reference links. The default value is false.
Optional
includeAllUrls: boolean[optional] True to include all remote URLs. The default value is false.
Optional
includeHidden: boolean[optional] True to include hidden repositories. The default value is false.
Retrieve a git repository.
The name or ID of the repository.
Optional
project: stringProject ID or project name
Retrieve a git repository.
The name or ID of the repository.
True to include parent repository. Only available in authenticated calls.
Optional
project: stringProject ID or project name
Retrieve information about a revert operation by revert Id.
Project ID or project name
ID of the revert operation.
ID of the repository.
Retrieve one conflict for a revert by ID
Optional
project: stringProject ID or project name
Retrieve all conflicts for a revert
Optional
project: stringProject ID or project name
Optional
continuationToken: stringOptional
top: numberOptional
excludeResolved: booleanOptional
onlyResolved: booleanOptional
includeObsolete: booleanRetrieve information about a revert operation for a specific branch.
Project ID or project name
ID of the repository.
The GitAsyncRefOperationParameters generatedRefName used for the revert operation.
Get statuses associated with the Git commit.
ID of the Git commit.
ID of the repository.
Optional
project: stringProject ID or project name
Optional
top: numberOptional. The number of statuses to retrieve. Default is 1000.
Optional
skip: numberOptional. The number of statuses to ignore. Default is 0. For example, to retrieve results 101-150, set top to 50 and skip to 100.
Optional
latestOnly: booleanThe flag indicates whether to get only latest statuses grouped by Context.Name
and Context.Genre
.
Retrieve a pull request suggestion for a particular repository or team project.
ID of the git repository.
Optional
project: stringProject ID or project name
Optional
preferCompareBranch: booleanIf true, prefer the compare branch over the default branch as target branch for pull requests.
Retrieve all threads in a pull request.
The repository ID of the pull request's target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Optional
iteration: numberIf specified, thread positions will be tracked using this iteration as the right side of the diff.
Optional
baseIteration: numberIf specified, thread positions will be tracked using this iteration as the left side of the diff.
The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository.
Repository Id.
SHA1 hash of the tree object.
Optional
project: stringProject ID or project name
Optional
projectId: stringProject Id.
Optional
recursive: booleanSearch recursively. Include trees underneath this tree. Default is false.
Optional
fileName: stringName to use if a .zip file is returned. Default is the object ID.
The Tree endpoint returns the collection of objects underneath the specified tree. Trees are folders in a Git repository.
Repository Id.
SHA1 hash of the tree object.
Optional
project: stringProject ID or project name
Optional
projectId: stringProject Id.
Optional
recursive: booleanSearch recursively. Include trees underneath this tree. Default is false.
Optional
fileName: stringName to use if a .zip file is returned. Default is the object ID.
Retrieve import requests for a repository.
Project ID or project name
The name or ID of the repository.
Optional
includeAbandoned: booleanTrue to include abandoned import requests in the results.
Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable.
Project ID or project name
The ID of the repository.
Sends an e-mail notification about a specific pull request to a set of recipients
ID of the git repository.
ID of the pull request.
Optional
project: stringProject ID or project name
Update merge conflict resolution
Optional
project: stringProject ID or project name
Update multiple merge conflict resolutions
Optional
project: stringProject ID or project name
Update a comment associated with a specific thread in a pull request.
The comment content that should be updated. Comments can be up to 150,000 characters.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the thread that the desired comment is in.
ID of the comment to update.
Optional
project: stringProject ID or project name
POST Enablement status for repositories.
Retry or abandon a failed import request.
The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned.
Project ID or project name
The name or ID of the repository.
The unique identifier for the import request to update.
Update a pull request
The pull request content that should be updated.
The repository ID of the pull request's target branch.
ID of the pull request to update.
Optional
project: stringProject ID or project name
Update merge conflict resolution
Optional
project: stringProject ID or project name
Update multiple merge conflict resolutions
Optional
project: stringProject ID or project name
Update pull request iteration statuses collection. The only supported operation type is remove
.
Operations to apply to the pull request statuses in JSON Patch format.
The repository ID of the pull request’s target branch.
ID of the pull request.
ID of the pull request iteration.
Optional
project: stringProject ID or project name
Create or update pull request external properties. The patch operation can be add
, replace
or remove
. For add
operation, the path can be empty. If the path is empty, the value must be a list of key value pairs. For replace
operation, the path cannot be empty. If the path does not exist, the property will be added to the collection. For remove
operation, the path cannot be empty. If the path does not exist, no action will be performed.
Properties to add, replace or remove in JSON Patch format.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Edit a reviewer entry. These fields are patchable: isFlagged, hasDeclined
Reviewer data.
If the reviewer's ID is included here, it must match the reviewerID parameter.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the reviewer.
Optional
project: stringProject ID or project name
Reset the votes of multiple reviewers on a pull request. NOTE: This endpoint only supports updating votes, but does not support updating required reviewers (use policy) or display names.
IDs of the reviewers whose votes will be reset to zero
The repository ID of the pull request's target branch.
ID of the pull request
Optional
project: stringProject ID or project name
Update pull request statuses collection. The only supported operation type is remove
.
Operations to apply to the pull request statuses in JSON Patch format.
The repository ID of the pull request’s target branch.
ID of the pull request.
Optional
project: stringProject ID or project name
Lock or Unlock a branch.
The ref update action (lock/unlock) to perform
The name or ID of the repository.
The name of the branch to lock/unlock
Optional
project: stringProject ID or project name
Optional
projectId: stringID or name of the team project. Optional if specifying an ID for repository.
Creating, updating, or deleting refs(branches).
List of ref updates to attempt to perform
The name or ID of the repository.
Optional
project: stringProject ID or project name
Optional
projectId: stringID or name of the team project. Optional if specifying an ID for repository.
Updates the Git repository with either a new repo name or a new default branch.
Specify a new repo name or a new default branch of the repository
The ID of the repository.
Optional
project: stringProject ID or project name
Update merge conflict resolution
Optional
project: stringProject ID or project name
Update multiple merge conflict resolutions
Optional
project: stringProject ID or project name
Update a thread in a pull request.
The thread content that should be updated.
The repository ID of the pull request's target branch.
ID of the pull request.
ID of the thread to update.
Optional
project: stringProject ID or project name
Create an annotated tag.