---
title: "Update Highlight"
method: PATCH
path: "/api/highlight/{highlight_id}"
---

# Update Highlight

`PATCH /api/highlight/{highlight_id}`

## Request

- Base URL: `https://api.openpaper.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openpaper.ai/api/highlight/{highlight_id}`
- Auth: API key in header `Authorization`

Update an existing highlight

## Path parameters

- `highlight_id` string, required

## Request body

- UpdateHighlightRequest
  - `raw_text` string, required
  - `position` object, nullable
  - `color` string, nullable
  - `start_offset` integer, nullable
  - `end_offset` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openpaper/apis/open-paper.md) - [All operations](https://skmtc.dev/openpaper/apis/open-paper/llms.txt) - [OpenAPI document](https://skmtc.dev/openpaper/apis/open-paper/revisions/c2ad03216101?raw)
