# ノートにファイルを添付

`PUT /api/note/{noteId}/files/{fileId}`

URL: https://repsona.com/ja/api/put-note-noteid-files-fileid

アップロード済みのファイルをノートに添付し、添付ファイルの一覧を返します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `noteId` | path | integer | 必須 | ノートの ID です。 |
| `fileId` | path | integer | 必須 | ファイルの ID です。アップロード時のレスポンスの id に入っています。 |

## リクエスト

```sh
curl -X PUT "https://<space>.repsona.com/api/note/{noteId}/files/{fileId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## レスポンス

- 200: Attached files
- 401: Authentication is required
- 403: Not a project member
- 404: Note not found

## レスポンスの例

```json
{
  "files": [
    {
      "id": 61,
      "hash": "f115d239-d980-4b0a-b1a8-8facf9ced74a",
      "size": 15,
      "type": "application/pdf",
      "filename": "meeting-notes.pdf"
    }
  ]
}
```
