---
title: "POST /v1/git-repos"
method: POST
path: "/v1/git-repos"
tags: ["git-repos"]
---

# POST /v1/git-repos

`POST /v1/git-repos`

Upsert a git repository information for a project.

## Request body

- object
  - `projectId` string, required
  - `remoteUrl` string, required
  - `branch` string, required
  - `branchType` 'PRODUCTION' | 'DEVELOPMENT', required
  - `sshPrivateKey` string, required
  - `slug` string, required

## Response `201`

Default Response

- GitRepo
  - `id` string, required
  - `created` string, required
  - `updated` string, required
  - `remoteUrl` string, required
  - `branch` string, required
  - `branchType` 'PRODUCTION' | 'DEVELOPMENT', required
  - `projectId` string, required
  - `slug` string, required

---

[API](https://skmtc.dev/activepieces/apis/activepieces-documentation.md) · [All operations](https://skmtc.dev/activepieces/apis/activepieces-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/activepieces/activepieces-documentation/revisions/745e4b7f764a/schema)
