v1

latestOpenAPI 3.1.02026-07-22106199311.5 KB
Repositories

Associate a repository with a project

Associates a repository with a project where none has been previously set

post/v1/projects/{projectId}/repositories

Path parameters

projectIdstring required

Headers

Git-Provider-Access-Tokenstring

Request body

OR
OR

Example request

{
  "provider": "github",
  "providerParameters": {
    "organization": "my-azure-org",
    "repositoryId": "existing-repo-id",
    "tenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  },
  "repositoryName": "my-project-repository"
}

Response

Repository associated successfully