---
title: "Update Document"
method: PUT
path: "/api/documents/{document_id}"
tags: ["document"]
---

# Update Document

`PUT /api/documents/{document_id}`

## Request

- Base URL: `https://app.myriade.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.myriade.ai/api/documents/{document_id}`
- Auth: none declared

Update a document's content, title, and/or visibility.

## Path parameters

- `document_id` string, uuid, required

## Cookies

- `session` string, nullable

## Request body

- DocumentUpdate
  - `title` string, nullable
  - `content` string, nullable
  - `change_description` string, nullable
  - `visibility` 'private' | 'scoped' | 'everyone', nullable
  - `published` boolean, nullable
  - `base_rev` integer, nullable
  - `base_content` string, nullable
  - `force_new_version` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/myriade/apis/myriade-bi-api.md) · [All operations](https://skmtc.dev/myriade/apis/myriade-bi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/myriade/apis/myriade-bi-api/revisions/15b7cb96ca80?raw)
