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

# What is the endpoint to patch or update an MCP server?

> API Endpoint reference for patching and updating an MCP server in the HasMCP framework.

# The Update Endpoint

## Using HasMCP UI

<img src="https://mintcdn.com/hasmcp/d2X-lsG7b5q-dkAh/images/kb/server-edit.png?fit=max&auto=format&n=d2X-lsG7b5q-dkAh&q=85&s=70da9cbc2704834340806aa2863af414" alt="Server Edit Page" width="2560" height="1440" data-path="images/kb/server-edit.png" />

Editing a server in the dashboard automatically generates and sends the correct update request behind the scenes when you hit Save.

## Using REST API

The exact API endpoint used to modify the configuration of an existing MCP server in the HasMCP Manager is:

**`PATCH /servers/{id}`**

### Endpoint Details

* **Method**: `PATCH` (The API generally treats this as an incremental or full update depending on the payload passed).
* **URL Parameter**: `{id}` represents the target server's 11-character alphanumeric ID.
* **Request Body**: A JSON object matching the [`UpdateServerRequest`](/api-reference/servers/update-mcp-server) containing the `server` object with modified fields.
* **Response**: Upon successful modification, it returns a `200 OK` status equipped with the deeply populated [`UpdateServerResponse`](/api-reference/servers/update-mcp-server) object.
