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

# Update Repository

Update an existing Git repository.

**Required Permissions**:

* `vso.code_manage`

**Note:**

* For additional request `body` properties, use **Additional Parameters** in the **Advanced** section, For more information about the full request `body` schema, visit [Repositories documentation](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/update?view=azure-devops-rest-7.1\&tabs=HTTP#request-body).

<Note>
  External Documentation

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

## Basic Parameters

<div className="integrations-table">
  | Parameter      | Description                                                                             |
  | -------------- | --------------------------------------------------------------------------------------- |
  | Default Branch | The new default branch of the repository.<br /><br />**For Example:** `refs/heads/main` |
  | Is Disabled    | Select to disable the repository.                                                       |
  | Name           | The new name of the repository.                                                         |
  | Organization   | The name of the organization.                                                           |
  | Project        | The project ID or project name.                                                         |
  | Repository ID  | The ID of the repository.                                                               |
</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/update?view=azure-devops-rest-7.1\&tabs=HTTP). |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "5febef5a-833d-4e14-b9c0-14cb638f91e6",
	"name": "RenamedRepository",
	"RenamedRepository": true,
	"isDisabled": true,
	"url": "https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_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"
	},
	"defaultBranch": "refs/heads/live",
	"remoteUrl": "https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_git/RenamedRepository",
	"type": "normal"
}
```

## Workflow Library Example

[Update Repository with Azure Devops and Send Results Via Email](https://library.blinkops.com/workflows/update-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/update-repository-with-azure-devops-and-send-results-via-email/canvas" />
</div>
