---
title: "Create Multiple New Document Sections"
method: POST
path: "/v1/document/{document_id}/multiple-section"
tags: ["Document"]
---

# Create Multiple New Document Sections

`POST /v1/document/{document_id}/multiple-section`

Create multiple new sections within a specified document, each with an optional parent section

## Path parameters

- `document_id` string, uuid, required

## Request body

- CreateMultipleDocumentSection
  - `context` BaseRequestContext
    - `projectId` string, uuid
    - `processPublicId` string, uuid, nullable
    - `processSectionPublicId` string, uuid, nullable
    - `processResponsePublicId` string, uuid, nullable
  - `sections` CreateDocumentSection[], required
    - `context` BaseRequestContext
      - `projectId` string, uuid
      - `processPublicId` string, uuid, nullable
      - `processSectionPublicId` string, uuid, nullable
      - `processResponsePublicId` string, uuid, nullable
    - `name` string, required
    - `parentId` string, uuid, nullable
    - `description` union
      - Draftjs
        - `content` DraftjsContent, required
          - `blocks` DraftjsBlock[], required
            - `data` object, required
            - `depth` integer, required
            - `entityRanges` DraftjsEntityRange[], required
              - …
            - `inlineStyleRanges` DraftjsInlineStyleRange[], required
              - …
            - `key` string, required
            - `text` string, required
            - `type` string, required
          - `entityMap` object, required
      - object, nullable
    - `plaintextDescription` string, nullable

## Response `200`

Successfully created multiple new document sections

- object
  - `metadata` object
    - `resourceIds` string[] — List of UUIDs for the newly created document sections
  - `data` string

## Other responses

- `404` — Document or a parent document section 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/:document_id/multiple-section/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)
