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

# Duplicates the Whiteboard with the given ID if it exists

`POST /whiteboard/duplicate/{whiteboard_id}`

## 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
        - 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
        - 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
        - SdocNodeData
          - `bgcolor` string, required — Background color of the text
          - `bgalpha` number, nullable, required — Background color alpha of the text
          - `type` 'sdoc', required
          - `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
          - `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
          - `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
          - `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
          - `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
          - `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
          - `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

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/versions/6b22366ce2d1/schema)
