---
title: "Upsert one document (snapshots prior content first)"
method: PUT
path: "/books/{bookId}/documents/{kind}"
---

# Upsert one document (snapshots prior content first)

`PUT /books/{bookId}/documents/{kind}`

## Request

- Base URL: `https://anthra.com/api/v1`
- URL: `https://anthra.com/api/v1/books/{bookId}/documents/{kind}`
- Auth: HTTP bearer

## Request body

- object
  - `title` string
  - `content` string, required

## Response `200`

OK

---

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