> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Repository

Create a git repository in a team project.

**Required Permissions**:

* `vso.code_manage`

<Note>
  External Documentation

  To learn more, visit the [Azure DevOps documentation](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/create?view=azure-devops-rest-7.1\&tabs=HTTP).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Name                      | The name of the repository to create.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Organization              | The name of the organization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Project                   | The project ID or project name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | Team Project Reference ID | The ID of the `Team Project Reference` in which to create the repository.<br /><br />To include additional project properties (for example, `description`), use **Additional Parameters** in the **Advanced** section.<br /><br />Example:<br /><br /><pre><code>\{<br />  "project": \{<br />    "description": "The project's description"<br />  }<br />}</code></pre><br />For more information about the `Team Project Reference` object, visit [Repositories documentation](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/create?view=azure-devops-rest-7.1\&tabs=HTTP#teamprojectreference). |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Additional Parameters | A JSON object for additional body parameters. Values specified in this parameter will override equivalent parameters.<br /><br />For example:<br /><pre><code>\{<br />    "first\_key": 12345,<br />    "second\_key": "some\_value"<br />}</code></pre>The object must follow the vendor's structure as defined in the [API documentation](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/create?view=azure-devops-rest-7.1\&tabs=HTTP).                                          |
  | Parent Repository     | The parent repository object when creating a fork.<br /><br />For Example:<br /><pre><code>\{<br />  "id": "57a09b16-c635-4ec9-bd6b-d501fec4eb7b",<br />  "project": \{<br />    "id": "3b046b6a-d070-4cd5-ad59-2eace5d05b90"<br />    }<br />}</code></pre>For more information about the `Parent Repository Object` parameter, visit [Repositories documentation](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/create?view=azure-devops-rest-7.1\&tabs=HTTP#gitrepositoryref). |
  | Source Ref            | The source refs to use while creating a fork repository.                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "5febef5a-833d-4e14-b9c0-14cb638f91e6",
	"name": "AnotherRepository",
	"url": "https://dev.azure.com/fabrikam/_apis/git/repositories/5febef5a-833d-4e14-b9c0-14cb638f91e6",
	"project": {
		"id": "6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c",
		"name": "Fabrikam-Fiber-Git",
		"url": "https://dev.azure.com/fabrikam/_apis/projects/6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c",
		"state": "wellFormed"
	},
	"remoteUrl": "https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_git/AnotherRepository"
}
```

## Workflow Library Example

[Create Repository with Azure Devops and Send Results Via Email](https://library.blinkops.com/workflows/create-repository-with-azure-devops-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-repository-with-azure-devops-and-send-results-via-email/canvas" />
</div>
