---
title: "POST /tracer/dashboard/{dashboard_pk}/widgets/{id}/duplicate/"
method: POST
path: "/tracer/dashboard/{dashboard_pk}/widgets/{id}/duplicate/"
tags: ["tracer"]
---

# POST /tracer/dashboard/{dashboard_pk}/widgets/{id}/duplicate/

`POST /tracer/dashboard/{dashboard_pk}/widgets/{id}/duplicate/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/tracer/dashboard/{dashboard_pk}/widgets/{id}/duplicate/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Duplicate a widget.

## Request body

- DashboardWidget
  - `id` string, uuid
  - `name` string
  - `description` string
  - `position` integer
  - `width` integer
  - `height` integer
  - `query_config` object: Saved query in the same shape as the dashboard query request: time_range and metrics are required once any metric is set, with optional workflow, project_ids, granularity, filters, and breakdowns.
  - `chart_config` object: Chart presentation. chart_type must be one of line, stacked_line, column, stacked_column, bar, stacked_bar, pie, table, or metric.
  - `created_by` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `201`

Created

- DashboardWidget
  - `id` string, uuid
  - `name` string
  - `description` string
  - `position` integer
  - `width` integer
  - `height` integer
  - `query_config` object: Saved query in the same shape as the dashboard query request: time_range and metrics are required once any metric is set, with optional workflow, project_ids, granularity, filters, and breakdowns.
  - `chart_config` object: Chart presentation. chart_type must be one of line, stacked_line, column, stacked_column, bar, stacked_bar, pie, table, or metric.
  - `created_by` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
