---
title: "Update annotation"
method: PUT
path: "/reader/books/{book_id}/annotations/{annotation_id}"
tags: ["Reader"]
---

# Update annotation

`PUT /reader/books/{book_id}/annotations/{annotation_id}`

Update an existing annotation

## Path parameters

- `book_id` string, required
- `annotation_id` integer, required

## Request body

- object
  - `cfi` string
  - `chapter` string
  - `color` string
  - `content` string
  - `page_number` integer
  - `position` number
  - `selected_text` string

## Response `200`

OK

- object
  - `data` SchemaAnnotation
    - `book_id` string
    - `cfi` string
    - `chapter` string
    - `color` string
    - `content` string
    - `ctime` integer
    - `device_id` string
    - `id` integer
    - `page_number` integer
    - `position` string
    - `selected_text` string
    - `type` 'note' | 'highlight' | 'bookmark'
    - `user_id` integer
    - `utime` integer

## Other responses

- `400` — Bad Request
- `404` — Not Found

---

[API](https://skmtc.net/lxpio/apis/omnigram-api.md) · [All operations](https://skmtc.net/lxpio/apis/omnigram-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lxpio/omnigram-api/versions/58911ffb3093/schema)
