---
title: "Update a terms document draft"
method: PUT
path: "/accounts/terms/document"
tags: ["Terms"]
---

# Update a terms document draft

`PUT /accounts/terms/document`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/terms/document`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/terms/document/put.ts> (a function with typed inputs; its response is checked against the schema)

Edits a draft. `revision` must match the revision read with the document; a mismatch answers 409 instead of merging. Admin or root.

## Request body

- object
  - `id` string, required: Document id
  - `kind` string: Document kind
  - `title` string: Title
  - `body` string: Document text
  - `show` object
  - `revision` integer: Revision the edit is based on

## Response `200`

Success

- object
  - `data` object

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Caller is not an admin or root
- `409`: Revision mismatch

## Changes

- **2026-11-12** `700eb1ace61a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/terms/document/put.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
