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

# How do I update a provider resource's metadata?

> Step-by-step documentation on updating the properties, execution path, or description of a registered provider resource.

# Updating a Provider Resource

## Using HasMCP UI

<img src="https://mintcdn.com/hasmcp/J3U3Tv-0tpxoj7dc/images/kb/provider-resource-edit.png?fit=max&auto=format&n=J3U3Tv-0tpxoj7dc&q=85&s=bad357a0243f9b46d2d81bc72d32a406" alt="Edit Provider Resource Modal" width="2560" height="1266" data-path="images/kb/provider-resource-edit.png" />

Updating a resource visually is completed within the details view:

1. Locate the assigned metadata blob in the **Resources** tab of your Provider.
2. Click the localized **Edit** button.
3. The Edit Resource modal appears; adjust the `mimeType`, name, or modify the target `uri`.
4. Hit **Save** to distribute the changes down to any attached MCP servers automatically.

## Using REST API

Should an underlying static API path shift, or if you need to alter the URI format the LLMs utilize to call the file context natively, you patch the resource definition.

### The API Endpoint

**`PATCH /providers/{providerId}/resources/{id}`**

### Constructing the Update Payload

Send a JSON structure formatted against the [`UpdateProviderResourceRequest`](/api-reference/providers/resources/update-provider-resource) schema. Like other patch mechanisms in HasMCP, you only need to supply the specific key-value pairs inside the `resource` object you wish to mutate.

#### Example Request Structure

```bash theme={null}
curl -X PATCH https://app.hasmcp.com/api/v1/providers/kSuB9Gf6aD4/resources/rA9BdO1kZ5T \
 -H "Authorization: Bearer YOUR_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{
 "resource": {
 "description": "An updated context describing the log file mapping more coherently.",
 "uri": "https://api.example.com/v2/system/logs/error-new"
 }
 }'
```

An immediate `200 OK` confirms that any MCP server actively attached to this provider resource will instantly adapt to proxied data through the updated routes.
