Azure DevOps Repositories API
Operations for managing Git repositories
Operations 6
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“What Git repositories are in my Azure DevOps project?”
“Can I include hidden repositories in the list?”
Tell an agent
List the Git repositories in the project.
List all repositories including hidden ones, using API version {apiVersion}.
Ask an LLM
“How do I create a new Git repo in a project?”
“Can I create a repository as a fork of an existing one?”
Tell an agent
Create a repository named {name} in project {project}.
Fork {parentRepository} into a new repository {name} in project {project}.
Ask an LLM
“What is the default branch and clone URL of a repository?”
“Can I see which repository a fork came from?”
Tell an agent
Show repository {repositoryId}.
Get repository {repositoryId} with its parent fork details.
PATCH
/git/repositories/{repositoryId}
Rename or reconfigure a repository · Azure DevOps Update a repository
#
Ask an LLM
“How do I rename a Git repository or change its default branch?”
“Can I disable a repository without deleting it?”
Tell an agent
Rename repository {repositoryId} to {name}.
Set the default branch of {repositoryId} to {defaultBranch}.
Ask an LLM
“Does deleting a repository also delete its pull requests?”
“Is removing a Git repository permanent?”
Tell an agent destructive · confirm first
Delete repository {repositoryId}.
Permanently remove Git repo {repositoryId} and all its contents.
GET
/git/repositories/{repositoryId}/items
Browse files and folders in a repository · Azure DevOps List repository items
#
Ask an LLM
“How do I see the files in a folder of a repo at a certain branch?”
“Can I list a repository's tree recursively?”
Tell an agent
List the files under {scopePath} in repository {repositoryId}.
Browse {scopePath} of {repositoryId} at version {version} with recursion {recursionLevel}.
Documentation
Documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/
Authentication
https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/authentication-guidance
Documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/
Documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/git/
Documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/
Documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/build/
Documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/release/
Documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/test/
Documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/hooks/
Specifications
OpenAPI
https://artifacts.apis.io/microsoft-azure-devops/openapi/microsoft-azure-devops-repositories-api-openapi.yml
AsyncAPI
https://artifacts.apis.io/microsoft-azure-devops/asyncapi/azure-devops-service-hooks-asyncapi.yml
Schemas & Data
JSONSchema
https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-git-repository-schema.json
JSONSchema
https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-git-item-schema.json