---
title: "Update Chapter Progress"
method: PATCH
path: "/api/v1/auth/preferences/onboarding"
tags: ["user-preferences"]
---

# Update Chapter Progress

`PATCH /api/v1/auth/preferences/onboarding`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/auth/preferences/onboarding`
- Auth: none declared

Update a chapter's completion status.

Mark a chapter as completed or incomplete. Typically called when user
finishes a walkthrough or when replaying a chapter.

## Headers

- `Authorization` string

## Request body

- UpdateChapterRequest: Request to update a chapter's completion status.
  - `chapter` string, required: Chapter ID (connect, discover, freshness, schema)
  - `completed` boolean: Whether the chapter is completed

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
