---
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.

---

[API](https://skmtc.net/rilldata/apis/rill-admin-api.md) · [All operations](https://skmtc.net/rilldata/apis/rill-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rilldata/rill-admin-api/versions/289a0ca9ce49/schema)
