For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTCreate a Git repository
        • POSTCreate a new branch in a repository
        • POSTInitialize a project in Git
        • GETList the available branches for a repository
        • GETRetrieve a project from Git
        • PUTUpdate a project in Git
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceGit

Create a Git repository

POST
http://localhost:3000/git/:gitType/repos/:repoPath
POST
/git/:gitType/repos/:repoPath
$curl -X POST http://localhost:3000/git/GitHub/repos/repoPath \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{}'
1{
2 "message": "`Successfully created repository: ExampleRepo",
3 "data": {
4 "path": "group1/group2/ExampleRepo",
5 "default_branch": "main",
6 "visibility": "private"
7 }
8}
Creates a new repository in Git for storing projects.
Was this page helpful?
Previous

Create a new branch in a repository

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Path parameters

gitTypeenumRequired
The name of the Git provider that is used
Allowed values:
repoPathstringRequired
The path in Git to the repository

Request

request body
repoNamestringOptional

Response

The result of creating a repository in Git
messagestring
dataobject

Errors

500
Internal Server Error