V3 Charts
Duplicate a chart
Changed onCopies a chart — same Feedback Dataset, type, chart query and display settings — so the copy can change without touching the dashboards that show the original. With dashboardId, the copy is also put on that dashboard (first open slot, or layout) in the same transaction, and the dashboard's updatedAt moves; a dashboard already holding 250 widgets, or with no open slot above the grid's last row, answers 409 and no copy is made. Needs write access to the chart's workspace and to its Feedback Dataset.
post/api/v3/charts/{chartId}/duplicate
Request
- Base URLhttps://app.formbricks.com
- URLhttps://app.formbricks.com/api/v3/charts/{chartId}/duplicate
- Auth
- API key in cookie next-auth.session-token
- or API key in header x-api-key
- or HTTP bearer
Path parameters
chartIdstring cuid2 required
Chart identifier.
Request body
Response
The copy
Example response
{
"data": {
"query": {
"measures": [
"FeedbackRecords.npsScore"
],
"dimensions": [
"FeedbackRecords.sourceName"
],
"timeDimensions": [
{
"dimension": "FeedbackRecords.collectedAt",
"dateRange": "last 30 days"
}
],
"filters": [
{
"member": "FeedbackRecords.sourceType"
}
]
}
}
}Changes
- info
endpoint added
- info