POST
/
api
/
v1
/
projects
/
{projectUuid}
/
charts
/
{slug}
/
code
{
  "results": {
    "charts": [
      {
        "data": {
          "description": "<string>",
          "name": "<string>",
          "projectUuid": "<string>",
          "organizationUuid": "<string>",
          "uuid": "<string>",
          "updatedAt": "2023-11-07T05:31:56Z",
          "chartConfig": {
            "config": {
              "comparisonLabel": "<string>",
              "flipColors": true,
              "comparisonFormat": "raw",
              "showComparison": true,
              "showBigNumberLabel": true,
              "selectedField": "<string>",
              "style": "thousands",
              "label": "<string>"
            },
            "type": "big_number"
          },
          "spaceUuid": "<string>",
          "pinnedListUuid": "<string>",
          "pinnedListOrder": 123,
          "slug": "<string>",
          "spaceName": "<string>",
          "dashboardUuid": "<string>",
          "dashboardName": "<string>",
          "updatedByUser": {
            "userUuid": "<string>",
            "firstName": "<string>",
            "lastName": "<string>"
          },
          "tableName": "<string>",
          "metricQuery": {
            "metadata": {
              "hasADateDimension": {
                "name": "<string>",
                "label": "<string>",
                "table": "<string>"
              }
            },
            "timezone": "<string>",
            "metricOverrides": {},
            "customDimensions": [
              {
                "id": "<string>",
                "name": "<string>",
                "table": "<string>",
                "type": "bin",
                "dimensionId": "<string>",
                "binType": "fixed_number",
                "binNumber": 123,
                "binWidth": 123,
                "customRange": [
                  {}
                ]
              }
            ],
            "additionalMetrics": [
              {
                "label": "<string>",
                "type": "percentile",
                "description": "<string>",
                "sql": "<string>",
                "hidden": true,
                "round": 123,
                "compact": "thousands",
                "format": "km",
                "table": "<string>",
                "name": "<string>",
                "index": 123,
                "filters": [
                  {
                    "values": [
                      "<any>"
                    ],
                    "operator": "isNull",
                    "id": "<string>",
                    "target": {},
                    "settings": "<any>",
                    "disabled": true,
                    "required": true
                  }
                ],
                "baseDimensionName": "<string>",
                "uuid": "<string>",
                "percentile": 123,
                "formatOptions": {
                  "type": "default",
                  "round": 123,
                  "separator": "default",
                  "currency": "<string>",
                  "compact": "thousands",
                  "prefix": "<string>",
                  "suffix": "<string>",
                  "timeInterval": "RAW",
                  "custom": "<string>"
                }
              }
            ],
            "tableCalculations": [
              {
                "type": "number",
                "format": {
                  "type": "default",
                  "round": 123,
                  "separator": "default",
                  "currency": "<string>",
                  "compact": "thousands",
                  "prefix": "<string>",
                  "suffix": "<string>",
                  "timeInterval": "RAW",
                  "custom": "<string>"
                },
                "sql": "<string>",
                "displayName": "<string>",
                "name": "<string>",
                "index": 123
              }
            ],
            "limit": 123,
            "sorts": [
              {
                "nullsFirst": true,
                "descending": true,
                "fieldId": "<string>"
              }
            ],
            "filters": {
              "tableCalculations": {
                "or": [
                  "<any>"
                ],
                "id": "<string>"
              },
              "metrics": {
                "or": [
                  "<any>"
                ],
                "id": "<string>"
              },
              "dimensions": {
                "or": [
                  "<any>"
                ],
                "id": "<string>"
              }
            },
            "metrics": [
              "<string>"
            ],
            "dimensions": [
              "<string>"
            ],
            "exploreName": "<string>"
          },
          "pivotConfig": {
            "columns": [
              "<string>"
            ]
          },
          "tableConfig": {
            "columnOrder": [
              "<string>"
            ]
          },
          "parameters": {},
          "colorPalette": [
            "<string>"
          ],
          "oldUuid": "<string>",
          "spacePath": "<string>",
          "spaceSlug": "<string>"
        },
        "action": "no changes"
      }
    ],
    "dashboards": [
      {
        "data": {
          "description": "<string>",
          "name": "<string>",
          "projectUuid": "<string>",
          "organizationUuid": "<string>",
          "uuid": "<string>",
          "updatedAt": "2023-11-07T05:31:56Z",
          "spaceUuid": "<string>",
          "pinnedListUuid": "<string>",
          "pinnedListOrder": 123,
          "slug": "<string>",
          "spaceName": "<string>",
          "updatedByUser": {
            "userUuid": "<string>",
            "firstName": "<string>",
            "lastName": "<string>"
          },
          "views": 123,
          "firstViewedAt": "<string>",
          "parameters": {},
          "dashboardVersionId": 123,
          "tiles": [
            {
              "uuid": "<string>",
              "type": "saved_chart",
              "x": 123,
              "y": 123,
              "h": 123,
              "w": 123,
              "tabUuid": "<string>",
              "properties": {
                "chartSlug": "<string>",
                "lastVersionChartKind": "<any>",
                "chartName": "<string>",
                "belongsToDashboard": true,
                "savedChartUuid": "<string>",
                "hideTitle": true,
                "title": "<string>"
              }
            }
          ],
          "filters": {
            "tableCalculations": [
              {
                "values": [
                  "<any>"
                ],
                "operator": "isNull",
                "id": "<string>",
                "target": {},
                "settings": "<any>",
                "disabled": true,
                "required": true,
                "singleValue": true,
                "label": "<string>",
                "tileTargets": {}
              }
            ],
            "metrics": [
              {
                "values": [
                  "<any>"
                ],
                "operator": "isNull",
                "id": "<string>",
                "target": {},
                "settings": "<any>",
                "disabled": true,
                "required": true,
                "singleValue": true,
                "label": "<string>",
                "tileTargets": {}
              }
            ],
            "dimensions": [
              {
                "values": [
                  "<any>"
                ],
                "operator": "isNull",
                "id": "<string>",
                "target": {},
                "settings": "<any>",
                "disabled": true,
                "required": true,
                "singleValue": true,
                "label": "<string>",
                "tileTargets": {}
              }
            ]
          },
          "tabs": [
            {
              "order": 123,
              "name": "<string>",
              "uuid": "<string>"
            }
          ],
          "config": {
            "pinnedParameters": [
              "<string>"
            ],
            "isDateZoomDisabled": true
          },
          "spacePath": "<string>",
          "spaceSlug": "<string>"
        },
        "action": "no changes"
      }
    ],
    "spaces": [
      {
        "data": {
          "name": "<string>",
          "projectUuid": "<string>",
          "organizationUuid": "<string>",
          "uuid": "<string>",
          "access": [
            "<string>"
          ],
          "isPrivate": true,
          "pinnedListUuid": "<string>",
          "pinnedListOrder": 123,
          "slug": "<string>",
          "parentSpaceUuid": "<string>",
          "path": "<string>",
          "chartCount": 123,
          "dashboardCount": 123
        },
        "action": "no changes"
      }
    ]
  },
  "status": "ok"
}

Path Parameters

projectUuid
string
required
slug
string
required

Body

application/json

From T, pick a set of properties whose keys are in the union K

name
string
required
updatedAt
string<date-time>
required
slug
string
required
tableName
string
required
tableConfig
object
required
version
number
required
spaceSlug
string
required
metricQuery
any
required

This AnyType is an alias for any The goal is to make it easier to identify any type in the codebase without having to eslint-disable all the time These are only used on legacy any types, don't use it for new types. This is added on a separate file to avoid circular dependencies.

chartConfig
any
required

This AnyType is an alias for any The goal is to make it easier to identify any type in the codebase without having to eslint-disable all the time These are only used on legacy any types, don't use it for new types. This is added on a separate file to avoid circular dependencies.

pivotConfig
object
dashboardSlug
string
downloadedAt
string<date-time>
description
string | null
skipSpaceCreate
boolean

Response

Success

results
object
required
status
enum<string>
required
Available options:
ok