---
title: "Duplicates the Whiteboard with the given ID if it exists"
method: PUT
path: "/whiteboard/duplicate/{whiteboard_id}"
tags: ["whiteboard"]
---

# Duplicates the Whiteboard with the given ID if it exists

`PUT /whiteboard/duplicate/{whiteboard_id}`

## Request

- The document declares no server URL.
- Auth: OAuth 2
  - Password
  - Token URL: `/authentication/login`

## Path parameters

- `whiteboard_id` integer, required

## Response `200`

Successful Response

- WhiteboardRead
  - `title` string, required: Title of the Whiteboard
  - `id` integer, required: ID of the Whiteboard
  - `project_id` integer, required: Project the Whiteboard belongs to
  - `created` string, date-time, required: Created timestamp of the Whiteboard
  - `updated` string, date-time, required: Updated timestamp of the Whiteboard
  - `content` WhiteboardContent, required
    - `nodes` WhiteboardNode[], required: Nodes of the Whiteboard
      - `id` string, required: ID of the node
      - `type` union: Type of the node
        - 'text' | 'note' | 'border' | 'sdoc' | 'memo' | 'code' | 'tag' | 'spanAnnotation' | 'sentenceAnnotation' | 'bboxAnnotation'
        - string
      - `data` union, required: Data of the node
        - TextNodeData
          - `text` string, required: Text of the text
          - `color` string, required: Text color of the text
          - `horizontalAlign` 'left' | 'center' | 'right', required
          - `verticalAlign` 'top' | 'center' | 'bottom', required
          - `bold` boolean, required: Boldness of the text
          - `italic` boolean, required: Italicness of the text
          - `underline` boolean, required: Underlinedness of the text
          - `strikethrough` boolean, required: Strikethroughness of the text
          - `fontSize` integer, required: Font size of the text
          - `fontFamily` string, required: Font family of the text
          - `type` 'text', required: Type of the whiteboard node
        - NoteNodeData
          - `text` string, required: Text of the text
          - `color` string, required: Text color of the text
          - `horizontalAlign` 'left' | 'center' | 'right', required
          - `verticalAlign` 'top' | 'center' | 'bottom', required
          - `bold` boolean, required: Boldness of the text
          - `italic` boolean, required: Italicness of the text
          - `underline` boolean, required: Underlinedness of the text
          - `strikethrough` boolean, required: Strikethroughness of the text
          - `fontSize` integer, required: Font size of the text
          - `fontFamily` string, required: Font family of the text
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'note', required: Type of the whiteboard node
        - BorderNodeData
          - `borderColor` string, required: Color of the border
          - `borderRadius` string, required: Radius of the border
          - `borderWidth` integer, required: Width of the border
          - `borderStyle` 'solid' | 'dashed' | 'dotted', required
          - `text` string, required: Text of the text
          - `color` string, required: Text color of the text
          - `horizontalAlign` 'left' | 'center' | 'right', required
          - `verticalAlign` 'top' | 'center' | 'bottom', required
          - `bold` boolean, required: Boldness of the text
          - `italic` boolean, required: Italicness of the text
          - `underline` boolean, required: Underlinedness of the text
          - `strikethrough` boolean, required: Strikethroughness of the text
          - `fontSize` integer, required: Font size of the text
          - `fontFamily` string, required: Font family of the text
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'border', required: Type of the whiteboard node
        - SdocNodeData
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'sdoc', required: Type of the whiteboard node
          - `sdocId` integer, required: ID of the source document
        - MemoNodeData
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'memo', required: Type of the whiteboard node
          - `memoId` integer, required: ID of the memo
        - CodeNodeData
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'code', required: Type of the whiteboard node
          - `codeId` integer, required: ID of the code
          - `parentCodeId` integer, nullable: ID of the parent code
        - TagNodeData
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'tag', required: Type of the whiteboard node
          - `tagId` integer, required: ID of the tag
        - SpanAnnotationNodeData
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'spanAnnotation', required: Type of the whiteboard node
          - `spanAnnotationId` integer, required: ID of the span annotation
        - SentenceAnnotationNodeData
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'sentenceAnnotation', required: Type of the whiteboard node
          - `sentenceAnnotationId` integer, required: ID of the sentence annotation
        - BBoxAnnotationNodeData
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
          - `type` 'bboxAnnotation', required: Type of the whiteboard node
          - `bboxAnnotationId` integer, required: ID of the bbox annotation
      - `position` XYPosition, required
        - `x` number, required: X coordinate of the position
        - `y` number, required: Y coordinate of the position
      - `width` number, nullable: Width of the node
      - `height` number, nullable: Height of the node
      - `style` object: Style of the node
    - `edges` WhiteboardEdge[], required: Edges of the Whiteboard
      - `id` string, required: ID of the edge
      - `type` string, nullable: Type of the edge
      - `source` string, required: Source node ID
      - `sourceHandle` string, nullable: Source handle position
      - `target` string, required: Target node ID
      - `targetHandle` string, nullable: Target handle position
      - `data` WhiteboardEdgeData
        - `type` 'bezier' | 'straight' | 'simplebezier' | 'smoothstep', required
        - `label` WhiteboardEdgeLabelData, required
          - `text` string, required: Text of the text
          - `color` string, required: Text color of the text
          - `horizontalAlign` 'left' | 'center' | 'right', required
          - `verticalAlign` 'top' | 'center' | 'bottom', required
          - `bold` boolean, required: Boldness of the text
          - `italic` boolean, required: Italicness of the text
          - `underline` boolean, required: Underlinedness of the text
          - `strikethrough` boolean, required: Strikethroughness of the text
          - `fontSize` integer, required: Font size of the text
          - `fontFamily` string, required: Font family of the text
          - `bgcolor` string, required: Background color of the text
          - `bgalpha` number, nullable, required: Background color alpha of the text
      - `style` object, nullable: Style of the edge
      - `markerEnd` union: Marker end of the edge
        - object
        - string
      - `markerStart` union: Marker start of the edge
        - object
        - string

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-05** `3bdfd02830b1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/whiteboard/duplicate/:whiteboard_id/put.md)

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) - [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/revisions/e498207e29f4?raw)
