---
title: "Update repository settings"
method: PATCH
path: "/servers/{qualifiedName}/repo"
tags: ["servers"]
---

# Update repository settings

`PATCH /servers/{qualifiedName}/repo`

Partially update the GitHub repository connection settings. Only provided fields are updated.

## Path parameters

- `qualifiedName` string, required

## Request body

- object
  - `baseDirectory` string
  - `branch` string, nullable
  - `autoDeploy` boolean

## Response `200`

Repository connection updated

- object
  - `repoOwner` string, required
  - `repoName` string, required
  - `baseDirectory` string, required
  - `branch` string, nullable, required
  - `autoDeploy` boolean, nullable, required
  - `isPrivate` boolean, required
  - `type` 'github', required

## Other responses

- `400` — Bad request (invalid input)
- `403` — Forbidden (user doesn't own server)
- `404` — Server not found or no repository connection

## Changes

- **2026-02-21** `0194b0111390` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/changes/servers/:qualifiedName/repo/patch.md)

---

[API](https://skmtc.dev/smithery-ai/apis/smithery-platform-api.md) · [All operations](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/revisions/3f57836881dd?raw)
