---
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 — 前回チェックインからの経過時間を記録しない
  - `source` 'web' | 'csv' | 'webhook' | 'api' — チェックインの登録元

## Other responses

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

## Changes

- **2021-08-10** `f1b4c8c15f87` — 1 info
  - added the optional property `source` to the response with the `200` status
- **2021-08-08** `6b9e98e5e4b5` — 1 breaking, 2 info
  - the `error/violations/items/` response's property type/format changed from `string`/`` to `object`/`` for status `422`
  - added the required property `error/violations/items/field` to the response with the `422` status
  - added the required property `error/violations/items/message` to the response with the `422` status
- **2021-08-01** `5472e40ec7e6` — 1 info
  - added the non-success response with the status `404`
- **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/a59db6eefbe4/schema)
