---
title: "Update Document Pages"
method: PUT
path: "/api/batch/{batch_id}/document/{document_id}"
tags: ["Batch Processing"]
---

# Update Document Pages

`PUT /api/batch/{batch_id}/document/{document_id}`

Update all pages of a document at once.
Useful for bulk updates after editing multiple pages.

Args:
    batch_id: Batch UUID
    document_id: Document UUID
    pages: List of page objects with page_number and data to update
    current_user: Authenticated user (optional for guest mode)

Returns:
    Update summary

## Path parameters

- `batch_id` string, required
- `document_id` string, required

## Request body

- object[]

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/versions/718de1c0d866/schema)
