---
title: "Create a New Document"
method: POST
path: "/v1/document"
tags: ["Document"]
---

# Create a New Document

`POST /v1/document`

Create a new document in a specified hub

## Request body

- CreateDocument
  - `context` BaseRequestContext
    - `projectId` string, uuid
    - `processPublicId` string, uuid, nullable
    - `processSectionPublicId` string, uuid, nullable
    - `processResponsePublicId` string, uuid, nullable
  - `projectId` string, uuid, required
  - `name` string, required
  - `type` string, required

## Response `200`

Document successfully created

- object
  - `metadata` object
    - `change` object — The changes made during document creation
    - `event` string — The event type, e.g., 'process.created'
    - `resourceId` string, uuid — The UUID of the newly created document
  - `data` Document
    - `publicId` string, uuid
    - `name` string

## Other responses

- `403` — Not authorized to create a document in this hub
- `404` — Hub not found

## Changes

- **2025-07-05** `9c58c1c1e7e8` — 1 info
  - endpoint added
- **2025-07-05** `69960ee36427` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/morta-technology/apis/morta-api-reference/changes/v1/document/post.md)

---

[API](https://skmtc.dev/morta-technology/apis/morta-api-reference.md) · [All operations](https://skmtc.dev/morta-technology/apis/morta-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morta-technology/morta-api-reference/revisions/9c58c1c1e7e8/schema)
