---
title: "POST /api/builder/element/{element_id}/duplicate/"
method: POST
path: "/api/builder/element/{element_id}/duplicate/"
tags: ["Builder elements"]
---

# POST /api/builder/element/{element_id}/duplicate/

`POST /api/builder/element/{element_id}/duplicate/`

Duplicates an element and all of the elements children and the associated workflow actions as well.

## Path parameters

- `element_id` integer, required

## Headers

- `ClientSessionId` string, uuid

## Response `200`

- DuplicateElement
  - `elements` Element[], required — The duplicated elements.
    - `id` integer, required
    - `page_id` integer, required
    - `type` string, required — The type of the element.
    - `css_classes` string — The additional CSS classes for this element.
    - `visibility` 'all' | 'logged-in' | 'not-logged' — * `all` - All * `logged-in` - Logged In * `not-logged` - Not Logged
    - `visibility_condition` object — Change element visibility depending on a formula value
    - `styles` unknown
    - `style_border_top_color` string — Top border color.
    - `style_border_top_size` integer — Pixel height of the top border.
    - `style_padding_top` integer — Padding size of the top border.
    - `style_margin_top` integer — Margin size of the top border.
    - `style_border_bottom_color` string — Bottom border color
    - `style_border_bottom_size` integer — Pixel height of the bottom border.
    - `style_padding_bottom` integer — Padding size of the bottom border.
    - `style_margin_bottom` integer — Margin size of the bottom border.
    - `style_border_left_color` string — Left border color
    - `style_border_left_size` integer — Pixel height of the left border.
    - `style_padding_left` integer — Padding size of the left border.
    - `style_margin_left` integer — Margin size of the left border.
    - `style_border_right_color` string — Right border color
    - `style_border_right_size` integer — Pixel height of the right border.
    - `style_padding_right` integer — Padding size of the right border.
    - `style_margin_right` integer — Margin size of the right border.
    - `style_background_radius` integer — Background radius.
    - `style_border_radius` integer — Border radius.
    - `style_background` 'none' | 'color' | 'image' — * `none` - None * `color` - Color * `image` - Image
    - `style_background_color` string — The background color if `style_background` is color.
    - `style_background_file` UserFile
      - `size` integer, required
      - `mime_type` string
      - `is_image` boolean
      - `image_width` integer, nullable
      - `image_height` integer, nullable
      - `uploaded_at` string, date-time, required
      - `url` string, uri, required
      - `thumbnails` object, required
      - `name` string, required
      - `original_name` string, required
    - `style_background_mode` 'tile' | 'fill' | 'fit' — * `tile` - Tile * `fill` - Fill * `fit` - Fit
    - `style_width` 'full' | 'full-width' | 'normal' | 'medium' | 'small' — * `full` - Full * `full-width` - Full Width * `normal` - Normal * `medium` - Medium * `small` - Small
    - `style_width_child` 'normal' | 'medium' | 'small' — * `normal` - Normal * `medium` - Medium * `small` - Small
    - `role_type` 'allow_all' | 'allow_all_except' | 'disallow_all_except' — * `allow_all` - Allow All * `allow_all_except` - Allow All Except * `disallow_all_except` - Disallow All Except
    - `roles` unknown
  - `workflow_actions` BuilderWorkflowAction[], required — The duplicated workflow actions
    - `id` integer, required
    - `order` integer, required
    - `element_id` integer, nullable, required
    - `type` string, required — The type of the workflow action
    - `event` string, required — The event that triggers the execution
  - `graph` string, required — The updated page graph.

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
