# Update project resource

```http
PUT /projects/{project_reference}/resources/{resource_id}
```

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.

## Parameters

| Name                 | In    | Required | Description                                                |
| -------------------- | ----- | -------- | ---------------------------------------------------------- |
| `project_reference`  | path  | Yes      | Project slug, UUID, or domain that identifies the project. |
| `resource_id`        | path  | Yes      |                                                            |
| `source_target_kind` | query |          |                                                            |
| `target_branch_id`   | query |          |                                                            |

## Request body

| Field         | Type        | Required | Description                                                   |
| ------------- | ----------- | -------- | ------------------------------------------------------------- |
| `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. |

## Responses

| Status | Description               |
| ------ | ------------------------- |
| 200    | Updated resource document |
| 400    | Bad request               |
| 401    | Unauthorized              |
| 403    | Forbidden                 |
| 404    | Not found                 |
| 409    | Conflict                  |
