Skip to Content
Dashboards

Copy Dashboard

POST
/v0/projects/{idOrSlug}/dashboards/{dashboardId}/copy

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string
dashboardId*string

Request Body

application/json
  1. body
targetProjectId*string

Response Body

DashboardRecord

application/json
  1. response
id*string
projectId*string
name*string
description*string|null
isPublic*boolean
isDefault*boolean
isPinned*boolean
folderId*string|null
position*number|
markerOverrides*|null
createdAt*string
updatedAt*string
Example Request
curl -X POST 'https://api.faststats.dev/v0/projects/string/dashboards/string/copy' \
  -H 'Content-Type: application/json' \
  -d '{
  "targetProjectId": "string"
}'
Example Response
{
  "id": "string",
  "projectId": "string",
  "name": "string",
  "description": "string",
  "isPublic": true,
  "isDefault": true,
  "isPinned": true,
  "folderId": "string",
  "position": 0,
  "markerOverrides": {
    "mode": "inherit",
    "collections": [
      {
        "collectionId": "string",
        "enabled": true,
        "display": {
          "icon": "string",
          "emoji": "string",
          "color": "string"
        }
      }
    ],
    "hiddenCollectionIds": [
      "string"
    ]
  },
  "createdAt": "string",
  "updatedAt": "string"
}