---
title: "Api Update Chapter"
method: PUT
path: "/api/v1/novels/{novel_id}/chapters/{chapter_id}"
---

# Api Update Chapter

`PUT /api/v1/novels/{novel_id}/chapters/{chapter_id}`

## Request

- Base URL: `https://humanread.surl.tw` (the document declares no server; this is the origin it was published from)
- URL: `https://humanread.surl.tw/api/v1/novels/{novel_id}/chapters/{chapter_id}`
- Auth: none declared

## Path parameters

- `novel_id` integer, required
- `chapter_id` integer, required

## Headers

- `authorization` string, nullable

## Request body

- ChapterUpdateRequest
  - `expected_source_hash` string, required
  - `title` string, required
  - `source` string, required
  - `source_type` 'markdown' | 'html' | 'text' | 'sandbox_html'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/surl/apis/humanread.md) · [All operations](https://skmtc.dev/surl/apis/humanread/llms.txt) · [OpenAPI document](https://skmtc.dev/surl/apis/humanread/revisions/0a54f33f41df?raw)
