---
title: "Add generic"
method: POST
path: "/api/v1/repositories/add-generic"
tags: ["Repositories"]
---

# Add generic

`POST /api/v1/repositories/add-generic`

## Request

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

Add a generic Git repository not tied to a specific provider

## Request body

- object
  - `organizationId` string, required: Organization to add the repository to
  - `repositoryUrl` string, required: URL of the Git repository
  - `defaultBranch` string, required: Default branch for repository operations

## Response `200`

Successfully added repository

- object
  - `id` string: Unique identifier of the created repository

---

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