Skip to main content
POST
/
api
/
v1
/
repositories
/
add-azure-devops
Add Azure DevOps repositories to ZeroPath
curl --request POST \
  --url https://zeropath.com/api/v1/repositories/add-azure-devops \
  --header 'Content-Type: application/json' \
  --header 'X-ZeroPath-API-Token-Id: <api-key>' \
  --header 'X-ZeroPath-API-Token-Secret: <api-key>' \
  --data '
{
  "organizationId": "<string>",
  "repos": [
    {
      "azureDevOpsInstallationId": "<string>",
      "externalAzureRepositoryId": "<string>"
    }
  ]
}
'
{
  "message": "<string>",
  "addedCount": 1,
  "failedCount": 1,
  "results": [
    {
      "id": "<string>",
      "repositoryName": "<string>",
      "success": true
    }
  ]
}

Authorizations

X-ZeroPath-API-Token-Id
string
header
required
X-ZeroPath-API-Token-Secret
string
header
required

Body

application/json
organizationId
string
required
repos
object[]
required
Minimum array length: 1

Response

Repositories imported

message
string
required
addedCount
integer
required
Required range: x >= 0
failedCount
integer
required
Required range: x >= 0
results
object[]
required