---
title: "チェックインの編集"
method: PATCH
path: "/v1/checkins/{id}"
tags: ["checkin"]
---

# チェックインの編集

`PATCH /v1/checkins/{id}`

指定したIDのチェックインの情報を編集します。
リクエスト内の項目は全て省略可能であり、更新したい項目のみを送信することができます。

## Path parameters

- `id` integer, required

## Request body

- UpdateCheckin
  - `checked_in_at` string, date-time — チェックイン日時
  - `tags` string[] — タグ
  - `link` string — オカズリンク (http, https)
  - `note` string — ノート
  - `is_private` boolean — 非公開チェックインとして設定
  - `is_too_sensitive` boolean — チェックイン対象のオカズをより過激なオカズとして設定
  - `discard_elapsed_time` boolean — 前回チェックインからの経過時間を記録しない

## Response `200`

成功

- Checkin — チェックインデータ
  - `id` integer — チェックインID
  - `checked_in_at` string, date-time — チェックイン日時
  - `tags` string[] — タグ
  - `link` string — オカズリンク (http, https)
  - `note` string — ノート
  - `is_private` boolean — 非公開チェックインとして設定
  - `is_too_sensitive` boolean — チェックイン対象のオカズをより過激なオカズとして設定
  - `discard_elapsed_time` boolean — 前回チェックインからの経過時間を記録しない

## Other responses

- `403` — 自分以外のチェックインに対して操作を試みた場合
- `422` — バリデーションエラー

## Changes

- **2021-07-28** `17b37b305538` — 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/checkins/: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/bf337fba520f/schema)
