---
title: "Duplicate chart"
method: POST
path: "/v0/boards/{boardId}/charts/{chartId}/duplicate"
tags: ["Charts"]
---

# Duplicate chart

`POST /v0/boards/{boardId}/charts/{chartId}/duplicate`

## Request

- Base URL: `https://api.formo.so`
- URL: `https://api.formo.so/v0/boards/{boardId}/charts/{chartId}/duplicate`
- Auth: HTTP bearer

Creates a copy of the chart on the same board and returns the new chart id.

## Path parameters

- `boardId` string, required
- `chartId` string, required

## Headers

- `Idempotency-Key` string

## Response `201`

Id of the newly created chart

- string

## Other responses

- `400`: The request was rejected. `code` is either `INVALID_VALIDATION_REQUEST` (Zod schema mismatch; `details` carries a `{ fieldPath: message }` map) or `BAD_REQUEST` (semantic validation failure outside Zod, e.g. mismatched IDs, business-rule violations). Branch on `code`, not status, to tell the two apart.
- `409`: The request conflicts with current resource state, or an `Idempotency-Key` request with the same key is currently in flight.

---

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