async fn update_chapter(
    payload: Json<ChapterUpdate>,
    chapter_id: Path<String>,
    pool: Data<PgPool>,
    user: AuthUser,
    file_store: Data<dyn FileStore>,
    app_conf: Data<ApplicationConfiguration>
) -> ControllerResult<Json<Chapter>>
Expand description

PUT /api/v0/main-frontend/chapters/:chapter_id - Update chapter.

Example

Request:

PUT /api/v0/main-frontend/chapters/d332f3d9-39a5-4a18-80f4-251727693c37  HTTP/1.1
Content-Type: application/json

{
    "name": "The Basics",
    "chapter_image_url": null,
    "chapter_number": 2,
    "front_page_id": "0ebba931-b027-4154-8274-2afb00d79306"
}