---
title: "Add DSV Named Items to a Document"
method: POST
path: "/public/v2/dsv/{document_id}/add-named-items"
tags: ["Document Structure View"]
---

# Add DSV Named Items to a Document

`POST /public/v2/dsv/{document_id}/add-named-items`

## Request

- Base URL: `https://api.pandadoc.com`
- URL: `https://api.pandadoc.com/public/v2/dsv/{document_id}/add-named-items`
- Auth: one of:
  - API key in header `Authorization`
  - OAuth 2
    - Authorization code: `https://app.pandadoc.com/oauth2/authorize`
    - Token URL: `https://api.pandadoc.com/oauth2/access_token`
- TypeScript: <https://skmtc.dev/pandadoc/apis/pandadoc-public-api/docs/public/v2/dsv/:document_id/add-named-items/post.ts> (a function with typed inputs; its response is checked against the schema)

Adds one or more named items to the specified document by ID. 
These items define the document's structure and hierarchy (e.g., sections or headings) 
for display or navigation purposes within the Document Structure View (DSV).

## Path parameters

- `document_id` string, required

## Request body

- AddDsvNamedItemsRequest
  - `items` object[], required: List of named items representing structural elements of the document.
    - `name` string, required: The display name of the item (e.g., "Introduction", "Chapter 1").
    - `level` integer, required: Hierarchical level of the item. Level 0 is the highest (top-level), with increasing numbers for nested structures.
    - `page_name` string, required: Internal reference or identifier for the page this item is associated with.

## Response `200`

Successfully created DSV named items.

- AddDsvNamedItemsResponse
  - `results` object[], required: List of DSV named items that were created.
    - `id` string, uuid, required: Unique identifier for the created DSV item.
    - `name` string, required: The display name of the item.
    - `level` integer, required: The hierarchy level of the item.
    - `page_name` string, required: Internal reference name for the page.
    - `page_uuid` string, uuid, required: UUID of the associated page.
  - `count` integer, required: Total number of items created.

## Changes

- **2026-11-03** `b9a306b1a421`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/changes/public/v2/dsv/:document_id/add-named-items/post.md)

---

[API](https://skmtc.dev/pandadoc/apis/pandadoc-public-api.md) - [All operations](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/revisions/b9a306b1a421?raw)
