---
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

---

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