---
title: "PUT /api/document/{document-id}"
method: PUT
path: "/api/document/{document-id}"
tags: ["/api/document"]
---

# PUT /api/document/{document-id}

`PUT /api/document/{document-id}`

Updates an existing `Document`.

## Path parameters

- `document-id` integer, required

## Request body

- object
  - `archived` boolean, nullable
  - `cards` object, nullable
  - `collection_id` integer, nullable — value must be an integer greater than zero.
  - `collection_position` integer, nullable — value must be an integer greater than zero.
  - `document` unknown
  - `name` string

## Response `2XX`

Successful response

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

## Changes

- **2026-03-09** `78297d193ca4` — 1 info
  - api operation id `put-api-document-document-id` was added

[Change history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/document/:document-id/put.md)

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) · [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/78297d193ca4/schema)
