---
title: "Add Azure DevOps repositories to ZeroPath"
method: POST
path: "/api/v1/repositories/add-azure-devops"
tags: ["Repositories"]
---

# Add Azure DevOps repositories to ZeroPath

`POST /api/v1/repositories/add-azure-devops`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/repositories/add-azure-devops`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

## Request body

- AddAzureDevOpsRepoInput
  - `organizationId` string, required
  - `repos` object[], required
    - `azureDevOpsInstallationId` string, required: ZeroPath Azure DevOps installation ID.
    - `externalAzureRepositoryId` string, required: Azure DevOps' stable repository ID.

## Response `200`

Repositories imported

- AddAzureDevOpsReposResponse
  - `message` string, required
  - `addedCount` integer, required
  - `failedCount` integer, required
  - `results` object[], required
    - `id` string, required
    - `repositoryName` string, required
    - `success` true, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api-2.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api-2/revisions/ea6ae4b68cd3?raw)
