# Update Note

Update an existing note.

**Endpoint**: `PUT /api/media-items/notes/{note_id}`
**Auth**: Required
**Content-Type**: `application/json`

## Path Parameters

| Parameter | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| note_id   | string | Yes      | Note UUID   |

## Request Body

| Field    | Type   | Required | Description                |
| -------- | ------ | -------- | -------------------------- |
| content  | string | No       | Updated note content       |
| position | string | No       | Updated location reference |

### Example Request

```json
{
  "content": "Updated note content",
  "position": "epubcfi(/6/4/2:20)"
}
```

## Response (200 OK)

```json
{
  "id": "uuid",
  "media_item_id": "uuid",
  "user_id": "uuid",
  "content": "Updated note content",
  "position": "epubcfi(/6/4/2:20)",
  "updated_at": "2026-01-31T10:00:00Z"
}
```

## Error Responses

| Code | Description                 |
| ---- | --------------------------- |
| 400  | Invalid note data           |
| 401  | Invalid or expired token    |
| 403  | User does not own this note |
| 404  | Note not found              |
