---
title: "Create Document Version"
method: POST
path: "/documents/{document_id}/versions"
tags: ["documents"]
---

# Create Document Version

`POST /documents/{document_id}/versions`

Create a new version of a document with revised content

## Path parameters

- `document_id` string, uuid, required

## Request body

- DocumentVersionCreate — Schema for creating a new document version
  - `content` string, required

## Response `200`

Successful Response

- DocumentResponse
  - `id` string, uuid, required
  - `user_id` string, required
  - `title` string, required
  - `content` string, required
  - `conversation_id` string, uuid, nullable, required
  - `parent_document_id` string, uuid, nullable
  - `child_document_id` string, uuid, nullable
  - `version_number` integer
  - `coordinator_session_id` string, nullable
  - `document_session_id` string, nullable
  - `is_public` boolean, required
  - `shared_with` string[], required
  - `doc_metadata` object, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/tryscott/apis/one-shot-api.md) · [All operations](https://skmtc.net/tryscott/apis/one-shot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryscott/one-shot-api/versions/28bdface01df/schema)
