---
title: "コレクションアイテムの更新"
method: PATCH
path: "/v1/collections/{collection_id}/items/{collection_item_id}"
tags: ["collection"]
---

# コレクションアイテムの更新

`PATCH /v1/collections/{collection_id}/items/{collection_item_id}`

指定したIDのコレクションアイテムの情報を更新します。
リクエスト内の項目は全て省略可能であり、更新したい項目のみを送信することができます。

## Path parameters

- `collection_id` integer, required
- `collection_item_id` integer, required

## Request body

- UpdateCollectionItem
  - `note` string — ノート
  - `tags` string[] — タグ

## Response `200`

成功

- CollectionItem
  - `id` integer, required — コレクションアイテムID
  - `collection_id` integer, required — コレクションID
  - `link` string, required — オカズリンク (http, https)
  - `note` string — ノート
  - `tags` string[] — タグ

## Other responses

- `403` — 自分以外が作成したコレクションに対して操作を試みた場合
- `404` — 存在しない場合
- `422` — バリデーションエラー

## Changes

- **2023-12-15** `d78abb642299` — 1 info
  - endpoint added
- **2020-07-21** `be57ea2beb88` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/shikorism/apis/tissue-api/changes/v1/collections/:collection_id/items/:collection_item_id/patch.md)

---

[API](https://skmtc.dev/shikorism/apis/tissue-api.md) · [All operations](https://skmtc.dev/shikorism/apis/tissue-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shikorism/tissue-api/revisions/ba4127ea2b1b/schema)
