# veryfront__update_project_resource

Change the pattern, description or title of a structured project resource, where an omitted field keeps its value; returns the updated project resource source document. Requires project.files.write.

Risk: mutating.

## Arguments

| Name                 | Type        | Required | Description                                                                               |
| -------------------- | ----------- | -------- | ----------------------------------------------------------------------------------------- |
| `project_reference`  | string      |          | Project ID or slug                                                                        |
| `resource_id`        | string      | Yes      | Resource ID from list\_project\_resources                                                 |
| `pattern`            | string      |          | New URI pattern. Omit it to keep the current pattern.                                     |
| `description`        | string      |          | New description. Omit it to keep the current description.                                 |
| `title`              | string,null |          | New display title. Omit it to keep the title; null clears it.                             |
| `source_target_kind` | string      |          | The source to write: project (the default) or preview\_branch.                            |
| `target_branch_id`   |             |          | The preview branch to write. Required with preview\_branch and not accepted with project. |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_project_resource",
    "arguments": {
      "resource_id": "<resource_id>"
    }
  }
}
```
