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

Initialize a project in Git

POST
http://localhost:3000/git/:gitType/repos/:repoPath/branches/:branchName/projects/:projectPath
POST
/git/:gitType/repos/:repoPath/branches/:branchName/projects/:projectPath
$curl -X POST http://localhost:3000/git/GitHub/repos/repoPath/branches/branchName/projects/projectPath \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{}'
1{
2 "message": "Successfully initialized project",
3 "data": {}
4}
Initializes a project in Git.
Was this page helpful?
Previous

List the available branches for 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
branchNamestringRequired
The name of the branch that is used.
projectPathstringRequired
The file path within a Git repository to a project file

Request

request body
projectobjectOptional
commitMessagestringOptional
The commit message sent to Git when updating a project

Response

The result of initializing a project in Git
messagestring
dataobject
The project document pushed to Git

Errors

500
Internal Server Error