---
title: "CreateManagedGitRepo creates a new rill managed git repo for the organization."
method: PUT
path: "/v1/orgs/{org}/create-managed-git-repo"
---

# CreateManagedGitRepo creates a new rill managed git repo for the organization.

`PUT /v1/orgs/{org}/create-managed-git-repo`

## Path parameters

- `org` string, required

## Request body

- object
  - `autoInit` boolean
  - `name` string — name of the repo to create. Note: The final name will be suffixed with a random string to ensure uniqueness.

## Response `200`

A successful response.

- V1CreateManagedGitRepoResponse
  - `defaultBranch` string
  - `password` string
  - `passwordExpiresAt` string, date-time
  - `remote` string
  - `username` string

## Other responses

- `default` — An unexpected error response.

## Changes

> 54 revisions in range; 1 could not be searched.

- **2026-04-29** (v1) `bab4c7be99f5` — 1 info
  - added the new optional request property `autoInit`
- **2025-12-11** (v1) `f317ff96998d` — 1 warning
  - removed the request property `autoInit`

[Change history](https://skmtc.dev/rilldata/apis/rill-admin-api/changes/v1/orgs/:org/create-managed-git-repo/put.md)

---

[API](https://skmtc.dev/rilldata/apis/rill-admin-api.md) · [All operations](https://skmtc.dev/rilldata/apis/rill-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rilldata/rill-admin-api/revisions/abe7a430f373/schema)
