Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.
Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.
Available options:
SUM
tableMetricType
Option 1 · enum<string>Option 2 · enum<string>
TABLE charts: COUNT shows the record count above the table, NONE hides it.
Available options:
NONE
showLegend
boolean
Show the series legend (LINE, VERTICAL_BAR, HORIZONTAL_BAR, PIE, FUNNEL and SCATTER charts).
goalLineValue
number | null
Value of the target (goal) line on LINE, VERTICAL_BAR and SCATTER charts. Null hides it.
yAxisMinimum
number | null
Lower bound of the y-axis. Null picks it from the data.
yAxisMaximum
number | null
Upper bound of the y-axis. Null picks it from the data.
xAxisMinimum
number | null
SCATTER charts: lower bound of the x-axis. Null picks it from the data.
xAxisMaximum
number | null
SCATTER charts: upper bound of the x-axis. Null picks it from the data.
barMode
Option 1 · enum<string>Option 2 · enum<string>
How bars of a VERTICAL_BAR or HORIZONTAL_BAR chart with a breakdown (xAxisSecondaryProperty) combine: STACKED or side by side (GROUPED).
Available options:
STACKED
colorByCategory
boolean
Give each bar its own color by category on a single-series HORIZONTAL_BAR, categorical VERTICAL_BAR or FUNNEL chart. segmentColors are then keyed by category (xAxisProperty) value. Ignored while the chart has a breakdown.
seriesColor
enum<string> | null
Color of the series on a chart without a breakdown (LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL, SCATTER). Null picks it automatically.
Available options:
NEUTRAL,
BLUE,
ORANGE,
PURPLE,
RED,
TEAL,
GREEN,
YELLOW,
PINK
segmentColors
object | null
Colors of segments, keyed by segment value: breakdown values on LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL and SCATTER charts, slices on PIE charts, nodes on SANKEY charts, or categories with colorByCategory. Segments left out are colored automatically. Merged by key: null for a segment resets it to automatic; null for the whole field resets every segment.
Show child attributes
imageProperty
string | null
IMAGE charts: result column holding the image URL.
imageFit
Option 1 · enum<string>Option 2 · enum<string>
IMAGE charts: whether the image covers the card or fits inside it.
Available options:
CONTAIN
imageGrowToFit
boolean
IMAGE charts: grow the image to fill the card.
textProperty
string | null
TEXT charts: result column holding the text to show.
mapVariant
Option 1 · enum<string>Option 2 · enum<string>
MAP charts: WORLD (matches country names) or UNITED_STATES (matches state names).
Available options:
WORLD
tableColumns
object | null
TABLE charts: column widths and pins, keyed by result column name. Columns left out use the defaults. Merged by column: a column given replaces that column's settings, null resets it; null for the whole field resets every column.
Show child attributes
Response
Chart created successfully
data
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Basedash Documentation","colors":{"primary":"#3C50FF","light":"#6373FF","dark":"#061DE0"},"logo":{"light":"https://mintcdn.com/basedash/UcHJpOmrR3J146WE/logo/light.svg?fit=max\u0026auto=format\u0026n=UcHJpOmrR3J146WE\u0026q=85\u0026s=ffbaede88501c143a403b5850090b42a","dark":"https://mintcdn.com/basedash/UcHJpOmrR3J146WE/logo/dark.svg?fit=max\u0026auto=format\u0026n=UcHJpOmrR3J146WE\u0026q=85\u0026s=aec54d36c0048b53e3df724fc231dd94","href":"https://www.basedash.com"},"favicon":"https://mintcdn.com/basedash/UcHJpOmrR3J146WE/favicon.svg?fit=max\u0026auto=format\u0026n=UcHJpOmrR3J146WE\u0026q=85\u0026s=e6d2754428c77f51e2c1146803c90746","appearance":{"default":"system"},"navbar":{"links":[{"href":"mailto:support@basedash.com","label":"Contact us"}],"primary":{"type":"button","label":"Log in","href":"https://charts.basedash.com"}},"footer":{"socials":{"x":"https://x.com/Basedash","github":"https://github.com/Basedash","linkedin":"https://linkedin.com/company/Basedash"}},"seo":{"metatags":{"canonical":"https://www.basedash.com/docs"}},"styling":{"codeblocks":"dark","latex":false},"navigation":{"global":{"anchors":[{"anchor":"Changelog","icon":"clock-rotate-left","href":"https://www.basedash.com/changelog"},{"anchor":"Contact support","icon":"life-ring","href":"mailto:support@basedash.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"basedash","hasAudioNarration":false,"actualSubdomain":"basedash","customDomains":["basedash.com"],"gitSource":{"type":"github","owner":"basedash","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b00dc409c8faa34dd97314c","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Data sources","count":728},{"language":"default","tag":"Connectors","count":708},{"language":"default","tag":"Developers","count":99},{"language":"default","tag":"Endpoints","count":93},{"language":"default","tag":"Documentation","count":57},{"language":"default","tag":"Build","count":25},{"language":"default","tag":"Chart types","count":17},{"language":"default","tag":"Administration","count":13},{"language":"default","tag":"Chats","count":11},{"language":"default","tag":"Dashboards","count":11}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@basedash.com"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/charts/create-a-chart","slug":"/api-reference/charts/create-a-chart","pageMetadata":{"title":"Create a chart","description":"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/charts","href":"/api-reference/charts/create-a-chart","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Create a chart","description":"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/charts","href":"/api-reference/charts/create-a-chart","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/basedash/598c05dbac71c2b9/scripts/generate-connector-pages.js","/docs/_mintlify/custom/basedash/92fde38ba79efb2a/scripts/ignored-connectors.js","/docs/_mintlify/custom/basedash/1b6dcfd155bb195c/scripts/content-constants.js","/docs/_mintlify/custom/basedash/b1d78f42287990a8/scripts/sync-content-constants.js"],"openApiReferenceData":{"operation":{"summary":"Create a chart","description":"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.","tags":["Charts"],"security":["d579fd85-bb35-442b-abf4-576dc77285d3"],"parameters":["e57abdf2-384a-4906-8932-737fd6bef713"],"requestBody":"442db5c4-35fd-4421-becf-4ff3ad41c1d5","responses":{"201":"e23dac41-addd-498d-a78b-52dbd9e1352e","400":"3e74b34d-ffa4-4ab9-a0c0-501e95714a5b","401":"8378e2c7-9cfc-4a99-bfb6-da15820bf945","403":"f3bfb2a5-f82a-4494-97d7-a39ec730415a","404":"a3a6446f-9eca-44fd-800a-13eb461890ea","415":"1ccc5728-9b38-467a-a0eb-dfa0d5adc74c","429":"d369255e-2d0d-4654-8e0f-fa4f3dc17ff0","500":"a9654151-9db6-4ba4-a9e3-467ceca4dfd6"},"method":"post","type":"path","servers":["b8dd8ffe-9c2a-4382-9d6b-7ff3222dccee"],"path":"/api/public/organizations/{orgId}/charts","baseUrlOptions":["https://charts.basedash.com"],"title":"Create a chart","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e57abdf2-384a-4906-8932-737fd6bef713":{"schema":{"type":"string","description":"Organization ID","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"description":"Organization ID","name":"orgId","in":"path"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dashboardId":{"type":"string","minLength":1,"description":"ID of the dashboard to place the chart on","isRequired":true,"uniqueKey":"dashboardId","typeLabel":"string"},"dashboardTabId":{"type":"string","description":"ID of the dashboard tab to place the chart on. Defaults to the first tab.","uniqueKey":"dashboardTabId","typeLabel":"string"},"layout":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"description":"Column position on the dashboard grid","uniqueKey":"layout.x","typeLabel":"integer"},"y":{"type":"integer","minimum":0,"description":"Row position on the dashboard grid","uniqueKey":"layout.y","typeLabel":"integer"},"width":{"type":"integer","minimum":1,"description":"Width of the chart in grid units","uniqueKey":"layout.width","typeLabel":"integer"},"height":{"type":"integer","minimum":1,"description":"Height of the chart in grid units","uniqueKey":"layout.height","typeLabel":"integer"}},"description":"Position and size of the chart on the dashboard grid. Defaults to the bottom of the tab.","uniqueKey":"layout","typeLabel":"object"},"name":{"type":"string","minLength":1,"maxLength":500,"description":"Name of the chart","uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Description of the chart","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the chart","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"chartType":{"oneOf":[{"type":"string","description":"Type of the chart","enum":["TABLE"],"uniqueKey":"chartType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["LINE"],"uniqueKey":"chartType.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["VERTICAL_BAR"],"uniqueKey":"chartType.oneOf.2","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["HORIZONTAL_BAR"],"uniqueKey":"chartType.oneOf.3","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["SCATTER"],"uniqueKey":"chartType.oneOf.4","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["FUNNEL"],"uniqueKey":"chartType.oneOf.5","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["NUMBER"],"uniqueKey":"chartType.oneOf.6","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["PROGRESS"],"uniqueKey":"chartType.oneOf.7","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["IMAGE"],"uniqueKey":"chartType.oneOf.8","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["RECORD"],"uniqueKey":"chartType.oneOf.9","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["TEXT"],"uniqueKey":"chartType.oneOf.10","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["PIE"],"uniqueKey":"chartType.oneOf.11","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["ACTIVITY"],"uniqueKey":"chartType.oneOf.12","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["MAP"],"uniqueKey":"chartType.oneOf.13","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["SANKEY"],"uniqueKey":"chartType.oneOf.14","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["DASHBOARD_HEADER"],"uniqueKey":"chartType.oneOf.15","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["DASHBOARD_TEXT"],"uniqueKey":"chartType.oneOf.16","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of the chart","uniqueKey":"chartType.oneOf.17","typeLabel":"null"}],"uniqueKey":"chartType","typeLabel":"enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · null"},"sqlQuery":{"type":"string","description":"SQL query powering the chart","uniqueKey":"sqlQuery","typeLabel":"string"},"drilldownSqlQuery":{"oneOf":[{"type":"string","description":"SQL query used for chart drill-downs","uniqueKey":"drilldownSqlQuery.oneOf.0","typeLabel":"string"},{"type":"null","description":"SQL query used for chart drill-downs","uniqueKey":"drilldownSqlQuery.oneOf.1","typeLabel":"null"}],"uniqueKey":"drilldownSqlQuery","typeLabel":"string | null"},"databaseConnectionId":{"oneOf":[{"type":"string","description":"ID of the data source the SQL query runs against","uniqueKey":"databaseConnectionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID of the data source the SQL query runs against","uniqueKey":"databaseConnectionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"databaseConnectionId","typeLabel":"string | null"},"xAxisProperty":{"oneOf":[{"type":"string","description":"Result column used for the x-axis","uniqueKey":"xAxisProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"Result column used for the x-axis","uniqueKey":"xAxisProperty.oneOf.1","typeLabel":"null"}],"uniqueKey":"xAxisProperty","typeLabel":"string | null"},"xAxisSecondaryProperty":{"oneOf":[{"type":"string","description":"Result column used to break down the x-axis into segments","uniqueKey":"xAxisSecondaryProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"Result column used to break down the x-axis into segments","uniqueKey":"xAxisSecondaryProperty.oneOf.1","typeLabel":"null"}],"uniqueKey":"xAxisSecondaryProperty","typeLabel":"string | null"},"yAxisProperty":{"oneOf":[{"type":"string","description":"Result column used for the y-axis","uniqueKey":"yAxisProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"Result column used for the y-axis","uniqueKey":"yAxisProperty.oneOf.1","typeLabel":"null"}],"uniqueKey":"yAxisProperty","typeLabel":"string | null"},"staticContent":{"oneOf":[{"type":"string","description":"Static content for DASHBOARD_HEADER and DASHBOARD_TEXT chart types","uniqueKey":"staticContent.oneOf.0","typeLabel":"string"},{"type":"null","description":"Static content for DASHBOARD_HEADER and DASHBOARD_TEXT chart types","uniqueKey":"staticContent.oneOf.1","typeLabel":"null"}],"uniqueKey":"staticContent","typeLabel":"string | null"},"numericalFormat":{"oneOf":[{"type":"string","description":"How values are formatted. PERCENTAGE expects values on a 0-100 scale (42.5 shows as 42.5%); it does not convert 0-1 ratios.","enum":["NUMBER"],"uniqueKey":"numericalFormat.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"How values are formatted. PERCENTAGE expects values on a 0-100 scale (42.5 shows as 42.5%); it does not convert 0-1 ratios.","enum":["CURRENCY"],"uniqueKey":"numericalFormat.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","description":"How values are formatted. PERCENTAGE expects values on a 0-100 scale (42.5 shows as 42.5%); it does not convert 0-1 ratios.","enum":["PERCENTAGE"],"uniqueKey":"numericalFormat.oneOf.2","typeLabel":"enum\u003cstring>"}],"uniqueKey":"numericalFormat","typeLabel":"enum\u003cstring>"},"currencyCode":{"oneOf":[{"type":"string","description":"ISO 4217 currency code (for example USD or EUR) used when numericalFormat is CURRENCY. Null uses USD.","uniqueKey":"currencyCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 4217 currency code (for example USD or EUR) used when numericalFormat is CURRENCY. Null uses USD.","uniqueKey":"currencyCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"currencyCode","typeLabel":"string | null"},"showFullNumbers":{"type":"boolean","description":"Show full numbers (1,234,567) instead of abbreviated ones (1.2M).","uniqueKey":"showFullNumbers","typeLabel":"boolean"},"metricLabel":{"oneOf":[{"type":"string","description":"NUMBER charts: label shown with the value. Null uses the chart name.","uniqueKey":"metricLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"NUMBER charts: label shown with the value. Null uses the chart name.","uniqueKey":"metricLabel.oneOf.1","typeLabel":"null"}],"uniqueKey":"metricLabel","typeLabel":"string | null"},"timeSeriesMetricType":{"oneOf":[{"type":"string","description":"Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.","enum":["SUM"],"uniqueKey":"timeSeriesMetricType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.","enum":["LATEST"],"uniqueKey":"timeSeriesMetricType.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.","enum":["AVERAGE"],"uniqueKey":"timeSeriesMetricType.oneOf.2","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.","enum":["NONE"],"uniqueKey":"timeSeriesMetricType.oneOf.3","typeLabel":"enum\u003cstring>"}],"uniqueKey":"timeSeriesMetricType","typeLabel":"enum\u003cstring>"},"tableMetricType":{"oneOf":[{"type":"string","description":"TABLE charts: COUNT shows the record count above the table, NONE hides it.","enum":["NONE"],"uniqueKey":"tableMetricType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"TABLE charts: COUNT shows the record count above the table, NONE hides it.","enum":["COUNT"],"uniqueKey":"tableMetricType.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"tableMetricType","typeLabel":"enum\u003cstring>"},"showLegend":{"type":"boolean","description":"Show the series legend (LINE, VERTICAL_BAR, HORIZONTAL_BAR, PIE, FUNNEL and SCATTER charts).","uniqueKey":"showLegend","typeLabel":"boolean"},"goalLineValue":{"oneOf":[{"type":"number","description":"Value of the target (goal) line on LINE, VERTICAL_BAR and SCATTER charts. Null hides it.","uniqueKey":"goalLineValue.oneOf.0","typeLabel":"number"},{"type":"null","description":"Value of the target (goal) line on LINE, VERTICAL_BAR and SCATTER charts. Null hides it.","uniqueKey":"goalLineValue.oneOf.1","typeLabel":"null"}],"uniqueKey":"goalLineValue","typeLabel":"number | null"},"yAxisMinimum":{"oneOf":[{"type":"number","description":"Lower bound of the y-axis. Null picks it from the data.","uniqueKey":"yAxisMinimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Lower bound of the y-axis. Null picks it from the data.","uniqueKey":"yAxisMinimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"yAxisMinimum","typeLabel":"number | null"},"yAxisMaximum":{"oneOf":[{"type":"number","description":"Upper bound of the y-axis. Null picks it from the data.","uniqueKey":"yAxisMaximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Upper bound of the y-axis. Null picks it from the data.","uniqueKey":"yAxisMaximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"yAxisMaximum","typeLabel":"number | null"},"xAxisMinimum":{"oneOf":[{"type":"number","description":"SCATTER charts: lower bound of the x-axis. Null picks it from the data.","uniqueKey":"xAxisMinimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"SCATTER charts: lower bound of the x-axis. Null picks it from the data.","uniqueKey":"xAxisMinimum.oneOf.1","typeLabel":"null"}],"uniqueKey":"xAxisMinimum","typeLabel":"number | null"},"xAxisMaximum":{"oneOf":[{"type":"number","description":"SCATTER charts: upper bound of the x-axis. Null picks it from the data.","uniqueKey":"xAxisMaximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"SCATTER charts: upper bound of the x-axis. Null picks it from the data.","uniqueKey":"xAxisMaximum.oneOf.1","typeLabel":"null"}],"uniqueKey":"xAxisMaximum","typeLabel":"number | null"},"barMode":{"oneOf":[{"type":"string","description":"How bars of a VERTICAL_BAR or HORIZONTAL_BAR chart with a breakdown (xAxisSecondaryProperty) combine: STACKED or side by side (GROUPED).","enum":["STACKED"],"uniqueKey":"barMode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"How bars of a VERTICAL_BAR or HORIZONTAL_BAR chart with a breakdown (xAxisSecondaryProperty) combine: STACKED or side by side (GROUPED).","enum":["GROUPED"],"uniqueKey":"barMode.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"barMode","typeLabel":"enum\u003cstring>"},"colorByCategory":{"type":"boolean","description":"Give each bar its own color by category on a single-series HORIZONTAL_BAR, categorical VERTICAL_BAR or FUNNEL chart. segmentColors are then keyed by category (xAxisProperty) value. Ignored while the chart has a breakdown.","uniqueKey":"colorByCategory","typeLabel":"boolean"},"seriesColor":{"oneOf":[{"type":"string","description":"Color of the series on a chart without a breakdown (LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL, SCATTER). Null picks it automatically.","enum":["NEUTRAL","BLUE","ORANGE","PURPLE","RED","TEAL","GREEN","YELLOW","PINK"],"uniqueKey":"seriesColor.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Color of the series on a chart without a breakdown (LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL, SCATTER). Null picks it automatically.","uniqueKey":"seriesColor.oneOf.1","typeLabel":"null"}],"uniqueKey":"seriesColor","typeLabel":"enum\u003cstring> | null"},"segmentColors":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"string","description":"A color from the chart palette. NEUTRAL is near-black in light mode and near-white in dark mode.","enum":["NEUTRAL","BLUE","ORANGE","PURPLE","RED","TEAL","GREEN","YELLOW","PINK"],"uniqueKey":"segmentColors.oneOf.0.additionalProperties.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"segmentColors.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"segmentColors.oneOf.0.additionalProperties","typeLabel":"enum\u003cstring> | null"},"description":"Colors of segments, keyed by segment value: breakdown values on LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL and SCATTER charts, slices on PIE charts, nodes on SANKEY charts, or categories with colorByCategory. Segments left out are colored automatically. Merged by key: null for a segment resets it to automatic; null for the whole field resets every segment.","uniqueKey":"segmentColors.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{"type":"string","description":"A color from the chart palette. NEUTRAL is near-black in light mode and near-white in dark mode.","enum":["NEUTRAL","BLUE","ORANGE","PURPLE","RED","TEAL","GREEN","YELLOW","PINK"],"uniqueKey":"segmentColors.oneOf.1.additionalProperties.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"segmentColors.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"segmentColors.oneOf.1.additionalProperties","typeLabel":"enum\u003cstring> | null"},"description":"Colors of segments, keyed by segment value: breakdown values on LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL and SCATTER charts, slices on PIE charts, nodes on SANKEY charts, or categories with colorByCategory. Segments left out are colored automatically. Merged by key: null for a segment resets it to automatic; null for the whole field resets every segment.","uniqueKey":"segmentColors.oneOf.1","typeLabel":"null"}],"uniqueKey":"segmentColors","typeLabel":"object | null"},"imageProperty":{"oneOf":[{"type":"string","description":"IMAGE charts: result column holding the image URL.","uniqueKey":"imageProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"IMAGE charts: result column holding the image URL.","uniqueKey":"imageProperty.oneOf.1","typeLabel":"null"}],"uniqueKey":"imageProperty","typeLabel":"string | null"},"imageFit":{"oneOf":[{"type":"string","description":"IMAGE charts: whether the image covers the card or fits inside it.","enum":["CONTAIN"],"uniqueKey":"imageFit.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"IMAGE charts: whether the image covers the card or fits inside it.","enum":["COVER"],"uniqueKey":"imageFit.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"imageFit","typeLabel":"enum\u003cstring>"},"imageGrowToFit":{"type":"boolean","description":"IMAGE charts: grow the image to fill the card.","uniqueKey":"imageGrowToFit","typeLabel":"boolean"},"textProperty":{"oneOf":[{"type":"string","description":"TEXT charts: result column holding the text to show.","uniqueKey":"textProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"TEXT charts: result column holding the text to show.","uniqueKey":"textProperty.oneOf.1","typeLabel":"null"}],"uniqueKey":"textProperty","typeLabel":"string | null"},"mapVariant":{"oneOf":[{"type":"string","description":"MAP charts: WORLD (matches country names) or UNITED_STATES (matches state names).","enum":["WORLD"],"uniqueKey":"mapVariant.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"MAP charts: WORLD (matches country names) or UNITED_STATES (matches state names).","enum":["UNITED_STATES"],"uniqueKey":"mapVariant.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"mapVariant","typeLabel":"enum\u003cstring>"},"tableColumns":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"width":{"oneOf":[{"type":"number","minimum":0,"maximum":2147483647,"description":"Column width in pixels. Null sizes the column automatically.","uniqueKey":"tableColumns.oneOf.0.additionalProperties.oneOf.0.width.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":2147483647,"description":"Column width in pixels. Null sizes the column automatically.","uniqueKey":"tableColumns.oneOf.0.additionalProperties.oneOf.0.width.oneOf.1","typeLabel":"null"}],"uniqueKey":"tableColumns.oneOf.0.additionalProperties.oneOf.0.width","typeLabel":"number | null"},"pinned":{"type":"boolean","description":"Whether the column is pinned to the left of the table. Defaults to false.","uniqueKey":"tableColumns.oneOf.0.additionalProperties.oneOf.0.pinned","typeLabel":"boolean"}},"uniqueKey":"tableColumns.oneOf.0.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"tableColumns.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"tableColumns.oneOf.0.additionalProperties","typeLabel":"object | null"},"description":"TABLE charts: column widths and pins, keyed by result column name. Columns left out use the defaults. Merged by column: a column given replaces that column's settings, null resets it; null for the whole field resets every column.","uniqueKey":"tableColumns.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{"type":"object","properties":{"width":{"oneOf":[{"type":"number","minimum":0,"maximum":2147483647,"description":"Column width in pixels. Null sizes the column automatically.","uniqueKey":"tableColumns.oneOf.1.additionalProperties.oneOf.0.width.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":2147483647,"description":"Column width in pixels. Null sizes the column automatically.","uniqueKey":"tableColumns.oneOf.1.additionalProperties.oneOf.0.width.oneOf.1","typeLabel":"null"}],"uniqueKey":"tableColumns.oneOf.1.additionalProperties.oneOf.0.width","typeLabel":"number | null"},"pinned":{"type":"boolean","description":"Whether the column is pinned to the left of the table. Defaults to false.","uniqueKey":"tableColumns.oneOf.1.additionalProperties.oneOf.0.pinned","typeLabel":"boolean"}},"uniqueKey":"tableColumns.oneOf.1.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"tableColumns.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"tableColumns.oneOf.1.additionalProperties","typeLabel":"object | null"},"description":"TABLE charts: column widths and pins, keyed by result column name. Columns left out use the defaults. Merged by column: a column given replaces that column's settings, null resets it; null for the whole field resets every column.","uniqueKey":"tableColumns.oneOf.1","typeLabel":"null"}],"uniqueKey":"tableColumns","typeLabel":"object | null"}},"required":["dashboardId"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"dashboardId":"\u003cstring>","dashboardTabId":"\u003cstring>","layout":{"x":1,"y":1,"width":2,"height":2},"name":"\u003cstring>","description":"\u003cstring>","chartType":"TABLE","sqlQuery":"\u003cstring>","drilldownSqlQuery":"\u003cstring>","databaseConnectionId":"\u003cstring>","xAxisProperty":"\u003cstring>","xAxisSecondaryProperty":"\u003cstring>","yAxisProperty":"\u003cstring>","staticContent":"\u003cstring>","numericalFormat":"NUMBER","currencyCode":"\u003cstring>","showFullNumbers":true,"metricLabel":"\u003cstring>","timeSeriesMetricType":"SUM","tableMetricType":"NONE","showLegend":true,"goalLineValue":123,"yAxisMinimum":123,"yAxisMaximum":123,"xAxisMinimum":123,"xAxisMaximum":123,"barMode":"STACKED","colorByCategory":true,"segmentColors":{},"imageProperty":"\u003cstring>","imageFit":"CONTAIN","imageGrowToFit":true,"textProperty":"\u003cstring>","mapVariant":"WORLD","tableColumns":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e23dac41-addd-498d-a78b-52dbd9e1352e":{"description":"Chart created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Chart ID","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"Chart creation timestamp","isRequired":true,"uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp of the last content or placement change","isRequired":true,"uniqueKey":"data.updatedAt","typeLabel":"string\u003cdate-time>"},"dashboardId":{"type":"string","description":"ID of the dashboard the chart is on","isRequired":true,"uniqueKey":"data.dashboardId","typeLabel":"string"},"dashboardTabId":{"type":"string","description":"ID of the dashboard tab the chart is on","isRequired":true,"uniqueKey":"data.dashboardTabId","typeLabel":"string"},"organizationId":{"type":"string","description":"Organization ID","isRequired":true,"uniqueKey":"data.organizationId","typeLabel":"string"},"name":{"type":"string","description":"Name of the chart","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Description of the chart","isRequired":true,"uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the chart","isRequired":true,"uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.description","typeLabel":"string | null"},"chartType":{"oneOf":[{"type":"string","description":"Type of the chart","enum":["TABLE"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["LINE"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["VERTICAL_BAR"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.2","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["HORIZONTAL_BAR"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.3","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["SCATTER"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.4","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["FUNNEL"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.5","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["NUMBER"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.6","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["PROGRESS"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.7","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["IMAGE"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.8","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["RECORD"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.9","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["TEXT"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.10","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["PIE"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.11","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["ACTIVITY"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.12","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["MAP"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.13","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["SANKEY"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.14","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["DASHBOARD_HEADER"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.15","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Type of the chart","enum":["DASHBOARD_TEXT"],"isRequired":true,"uniqueKey":"data.chartType.oneOf.16","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of the chart","isRequired":true,"uniqueKey":"data.chartType.oneOf.17","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.chartType","typeLabel":"enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · null"},"sqlQuery":{"type":"string","description":"SQL query powering the chart","isRequired":true,"uniqueKey":"data.sqlQuery","typeLabel":"string"},"drilldownSqlQuery":{"oneOf":[{"type":"string","description":"SQL query used for chart drill-downs","isRequired":true,"uniqueKey":"data.drilldownSqlQuery.oneOf.0","typeLabel":"string"},{"type":"null","description":"SQL query used for chart drill-downs","isRequired":true,"uniqueKey":"data.drilldownSqlQuery.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.drilldownSqlQuery","typeLabel":"string | null"},"databaseConnectionId":{"oneOf":[{"type":"string","description":"ID of the data source the SQL query runs against","isRequired":true,"uniqueKey":"data.databaseConnectionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID of the data source the SQL query runs against","isRequired":true,"uniqueKey":"data.databaseConnectionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.databaseConnectionId","typeLabel":"string | null"},"xAxisProperty":{"oneOf":[{"type":"string","description":"Result column used for the x-axis","isRequired":true,"uniqueKey":"data.xAxisProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"Result column used for the x-axis","isRequired":true,"uniqueKey":"data.xAxisProperty.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.xAxisProperty","typeLabel":"string | null"},"xAxisSecondaryProperty":{"oneOf":[{"type":"string","description":"Result column used to break down the x-axis into segments","isRequired":true,"uniqueKey":"data.xAxisSecondaryProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"Result column used to break down the x-axis into segments","isRequired":true,"uniqueKey":"data.xAxisSecondaryProperty.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.xAxisSecondaryProperty","typeLabel":"string | null"},"yAxisProperty":{"oneOf":[{"type":"string","description":"Result column used for the y-axis","isRequired":true,"uniqueKey":"data.yAxisProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"Result column used for the y-axis","isRequired":true,"uniqueKey":"data.yAxisProperty.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.yAxisProperty","typeLabel":"string | null"},"staticContent":{"oneOf":[{"type":"string","description":"Static content for DASHBOARD_HEADER and DASHBOARD_TEXT chart types","isRequired":true,"uniqueKey":"data.staticContent.oneOf.0","typeLabel":"string"},{"type":"null","description":"Static content for DASHBOARD_HEADER and DASHBOARD_TEXT chart types","isRequired":true,"uniqueKey":"data.staticContent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.staticContent","typeLabel":"string | null"},"numericalFormat":{"oneOf":[{"type":"string","description":"How values are formatted. PERCENTAGE expects values on a 0-100 scale (42.5 shows as 42.5%); it does not convert 0-1 ratios.","enum":["NUMBER"],"isRequired":true,"uniqueKey":"data.numericalFormat.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"How values are formatted. PERCENTAGE expects values on a 0-100 scale (42.5 shows as 42.5%); it does not convert 0-1 ratios.","enum":["CURRENCY"],"isRequired":true,"uniqueKey":"data.numericalFormat.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","description":"How values are formatted. PERCENTAGE expects values on a 0-100 scale (42.5 shows as 42.5%); it does not convert 0-1 ratios.","enum":["PERCENTAGE"],"isRequired":true,"uniqueKey":"data.numericalFormat.oneOf.2","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"data.numericalFormat","typeLabel":"enum\u003cstring>"},"currencyCode":{"oneOf":[{"type":"string","description":"ISO 4217 currency code (for example USD or EUR) used when numericalFormat is CURRENCY. Null uses USD.","isRequired":true,"uniqueKey":"data.currencyCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 4217 currency code (for example USD or EUR) used when numericalFormat is CURRENCY. Null uses USD.","isRequired":true,"uniqueKey":"data.currencyCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.currencyCode","typeLabel":"string | null"},"showFullNumbers":{"type":"boolean","description":"Show full numbers (1,234,567) instead of abbreviated ones (1.2M).","isRequired":true,"uniqueKey":"data.showFullNumbers","typeLabel":"boolean"},"metricLabel":{"oneOf":[{"type":"string","description":"NUMBER charts: label shown with the value. Null uses the chart name.","isRequired":true,"uniqueKey":"data.metricLabel.oneOf.0","typeLabel":"string"},{"type":"null","description":"NUMBER charts: label shown with the value. Null uses the chart name.","isRequired":true,"uniqueKey":"data.metricLabel.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.metricLabel","typeLabel":"string | null"},"timeSeriesMetricType":{"oneOf":[{"type":"string","description":"Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.","enum":["SUM"],"isRequired":true,"uniqueKey":"data.timeSeriesMetricType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.","enum":["LATEST"],"isRequired":true,"uniqueKey":"data.timeSeriesMetricType.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.","enum":["AVERAGE"],"isRequired":true,"uniqueKey":"data.timeSeriesMetricType.oneOf.2","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Summary value shown above LINE and VERTICAL_BAR charts: the SUM, AVERAGE or LATEST value of the series, or NONE to hide it. With a breakdown, NONE plus showLegend true shows segment labels only. PIE, FUNNEL and HORIZONTAL_BAR charts show the total unless this is NONE.","enum":["NONE"],"isRequired":true,"uniqueKey":"data.timeSeriesMetricType.oneOf.3","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"data.timeSeriesMetricType","typeLabel":"enum\u003cstring>"},"tableMetricType":{"oneOf":[{"type":"string","description":"TABLE charts: COUNT shows the record count above the table, NONE hides it.","enum":["NONE"],"isRequired":true,"uniqueKey":"data.tableMetricType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"TABLE charts: COUNT shows the record count above the table, NONE hides it.","enum":["COUNT"],"isRequired":true,"uniqueKey":"data.tableMetricType.oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"data.tableMetricType","typeLabel":"enum\u003cstring>"},"showLegend":{"type":"boolean","description":"Show the series legend (LINE, VERTICAL_BAR, HORIZONTAL_BAR, PIE, FUNNEL and SCATTER charts).","isRequired":true,"uniqueKey":"data.showLegend","typeLabel":"boolean"},"goalLineValue":{"oneOf":[{"type":"number","description":"Value of the target (goal) line on LINE, VERTICAL_BAR and SCATTER charts. Null hides it.","isRequired":true,"uniqueKey":"data.goalLineValue.oneOf.0","typeLabel":"number"},{"type":"null","description":"Value of the target (goal) line on LINE, VERTICAL_BAR and SCATTER charts. Null hides it.","isRequired":true,"uniqueKey":"data.goalLineValue.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.goalLineValue","typeLabel":"number | null"},"yAxisMinimum":{"oneOf":[{"type":"number","description":"Lower bound of the y-axis. Null picks it from the data.","isRequired":true,"uniqueKey":"data.yAxisMinimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Lower bound of the y-axis. Null picks it from the data.","isRequired":true,"uniqueKey":"data.yAxisMinimum.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.yAxisMinimum","typeLabel":"number | null"},"yAxisMaximum":{"oneOf":[{"type":"number","description":"Upper bound of the y-axis. Null picks it from the data.","isRequired":true,"uniqueKey":"data.yAxisMaximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Upper bound of the y-axis. Null picks it from the data.","isRequired":true,"uniqueKey":"data.yAxisMaximum.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.yAxisMaximum","typeLabel":"number | null"},"xAxisMinimum":{"oneOf":[{"type":"number","description":"SCATTER charts: lower bound of the x-axis. Null picks it from the data.","isRequired":true,"uniqueKey":"data.xAxisMinimum.oneOf.0","typeLabel":"number"},{"type":"null","description":"SCATTER charts: lower bound of the x-axis. Null picks it from the data.","isRequired":true,"uniqueKey":"data.xAxisMinimum.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.xAxisMinimum","typeLabel":"number | null"},"xAxisMaximum":{"oneOf":[{"type":"number","description":"SCATTER charts: upper bound of the x-axis. Null picks it from the data.","isRequired":true,"uniqueKey":"data.xAxisMaximum.oneOf.0","typeLabel":"number"},{"type":"null","description":"SCATTER charts: upper bound of the x-axis. Null picks it from the data.","isRequired":true,"uniqueKey":"data.xAxisMaximum.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.xAxisMaximum","typeLabel":"number | null"},"barMode":{"oneOf":[{"type":"string","description":"How bars of a VERTICAL_BAR or HORIZONTAL_BAR chart with a breakdown (xAxisSecondaryProperty) combine: STACKED or side by side (GROUPED).","enum":["STACKED"],"isRequired":true,"uniqueKey":"data.barMode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"How bars of a VERTICAL_BAR or HORIZONTAL_BAR chart with a breakdown (xAxisSecondaryProperty) combine: STACKED or side by side (GROUPED).","enum":["GROUPED"],"isRequired":true,"uniqueKey":"data.barMode.oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"data.barMode","typeLabel":"enum\u003cstring>"},"colorByCategory":{"type":"boolean","description":"Give each bar its own color by category on a single-series HORIZONTAL_BAR, categorical VERTICAL_BAR or FUNNEL chart. segmentColors are then keyed by category (xAxisProperty) value. Ignored while the chart has a breakdown.","isRequired":true,"uniqueKey":"data.colorByCategory","typeLabel":"boolean"},"seriesColor":{"oneOf":[{"type":"string","description":"Color of the series on a chart without a breakdown (LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL, SCATTER). Null picks it automatically.","enum":["NEUTRAL","BLUE","ORANGE","PURPLE","RED","TEAL","GREEN","YELLOW","PINK"],"isRequired":true,"uniqueKey":"data.seriesColor.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Color of the series on a chart without a breakdown (LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL, SCATTER). Null picks it automatically.","isRequired":true,"uniqueKey":"data.seriesColor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.seriesColor","typeLabel":"enum\u003cstring> | null"},"segmentColors":{"type":"object","additionalProperties":{"type":"string","enum":["NEUTRAL","BLUE","ORANGE","PURPLE","RED","TEAL","GREEN","YELLOW","PINK"],"description":"A color from the chart palette. NEUTRAL is near-black in light mode and near-white in dark mode.","uniqueKey":"data.segmentColors.additionalProperties","typeLabel":"enum\u003cstring>"},"description":"Colors of segments, keyed by segment value: breakdown values on LINE, VERTICAL_BAR, HORIZONTAL_BAR, FUNNEL and SCATTER charts, slices on PIE charts, nodes on SANKEY charts, or categories with colorByCategory. Segments left out are colored automatically.","isRequired":true,"uniqueKey":"data.segmentColors","typeLabel":"object"},"imageProperty":{"oneOf":[{"type":"string","description":"IMAGE charts: result column holding the image URL.","isRequired":true,"uniqueKey":"data.imageProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"IMAGE charts: result column holding the image URL.","isRequired":true,"uniqueKey":"data.imageProperty.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.imageProperty","typeLabel":"string | null"},"imageFit":{"oneOf":[{"type":"string","description":"IMAGE charts: whether the image covers the card or fits inside it.","enum":["CONTAIN"],"isRequired":true,"uniqueKey":"data.imageFit.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"IMAGE charts: whether the image covers the card or fits inside it.","enum":["COVER"],"isRequired":true,"uniqueKey":"data.imageFit.oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"data.imageFit","typeLabel":"enum\u003cstring>"},"imageGrowToFit":{"type":"boolean","description":"IMAGE charts: grow the image to fill the card.","isRequired":true,"uniqueKey":"data.imageGrowToFit","typeLabel":"boolean"},"textProperty":{"oneOf":[{"type":"string","description":"TEXT charts: result column holding the text to show.","isRequired":true,"uniqueKey":"data.textProperty.oneOf.0","typeLabel":"string"},{"type":"null","description":"TEXT charts: result column holding the text to show.","isRequired":true,"uniqueKey":"data.textProperty.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.textProperty","typeLabel":"string | null"},"mapVariant":{"oneOf":[{"type":"string","description":"MAP charts: WORLD (matches country names) or UNITED_STATES (matches state names).","enum":["WORLD"],"isRequired":true,"uniqueKey":"data.mapVariant.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"MAP charts: WORLD (matches country names) or UNITED_STATES (matches state names).","enum":["UNITED_STATES"],"isRequired":true,"uniqueKey":"data.mapVariant.oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"data.mapVariant","typeLabel":"enum\u003cstring>"},"tableColumns":{"type":"object","additionalProperties":{"type":"object","properties":{"width":{"oneOf":[{"type":"number","minimum":0,"maximum":2147483647,"description":"Column width in pixels. Null sizes the column automatically.","isRequired":true,"uniqueKey":"data.tableColumns.additionalProperties.width.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":2147483647,"description":"Column width in pixels. Null sizes the column automatically.","isRequired":true,"uniqueKey":"data.tableColumns.additionalProperties.width.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.tableColumns.additionalProperties.width","typeLabel":"number | null"},"pinned":{"type":"boolean","description":"Whether the column is pinned to the left of the table.","isRequired":true,"uniqueKey":"data.tableColumns.additionalProperties.pinned","typeLabel":"boolean"}},"required":["width","pinned"],"uniqueKey":"data.tableColumns.additionalProperties","typeLabel":"object"},"description":"TABLE charts: column widths and pins, keyed by result column name. Columns left out use the defaults.","isRequired":true,"uniqueKey":"data.tableColumns","typeLabel":"object"},"layout":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"description":"Column position on the dashboard grid","isRequired":true,"uniqueKey":"data.layout.x","typeLabel":"integer"},"y":{"type":"integer","minimum":0,"description":"Row position on the dashboard grid","isRequired":true,"uniqueKey":"data.layout.y","typeLabel":"integer"},"width":{"type":"integer","minimum":1,"description":"Width of the chart in grid units","isRequired":true,"uniqueKey":"data.layout.width","typeLabel":"integer"},"height":{"type":"integer","minimum":1,"description":"Height of the chart in grid units","isRequired":true,"uniqueKey":"data.layout.height","typeLabel":"integer"}},"required":["x","y","width","height"],"isRequired":true,"uniqueKey":"data.layout","typeLabel":"object"},"imageUrl":{"type":"string","format":"uri","description":"URL that renders this chart as a PNG image (the \"Get a chart image\" endpoint). Request it with the same API key authentication.","isRequired":true,"uniqueKey":"data.imageUrl","typeLabel":"string\u003curi>"}},"required":["id","createdAt","updatedAt","dashboardId","dashboardTabId","organizationId","name","description","chartType","sqlQuery","drilldownSqlQuery","databaseConnectionId","xAxisProperty","xAxisSecondaryProperty","yAxisProperty","staticContent","numericalFormat","currencyCode","showFullNumbers","metricLabel","timeSeriesMetricType","tableMetricType","showLegend","goalLineValue","yAxisMinimum","yAxisMaximum","xAxisMinimum","xAxisMaximum","barMode","colorByCategory","seriesColor","segmentColors","imageProperty","imageFit","imageGrowToFit","textProperty","mapVariant","tableColumns","layout","imageUrl"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","dashboardId":"\u003cstring>","dashboardTabId":"\u003cstring>","organizationId":"\u003cstring>","name":"\u003cstring>","description":"\u003cstring>","chartType":"TABLE","sqlQuery":"\u003cstring>","drilldownSqlQuery":"\u003cstring>","databaseConnectionId":"\u003cstring>","xAxisProperty":"\u003cstring>","xAxisSecondaryProperty":"\u003cstring>","yAxisProperty":"\u003cstring>","staticContent":"\u003cstring>","numericalFormat":"NUMBER","currencyCode":"\u003cstring>","showFullNumbers":true,"metricLabel":"\u003cstring>","timeSeriesMetricType":"SUM","tableMetricType":"NONE","showLegend":true,"goalLineValue":123,"yAxisMinimum":123,"yAxisMaximum":123,"xAxisMinimum":123,"xAxisMaximum":123,"barMode":"STACKED","colorByCategory":true,"seriesColor":"NEUTRAL","segmentColors":{},"imageProperty":"\u003cstring>","imageFit":"CONTAIN","imageGrowToFit":true,"textProperty":"\u003cstring>","mapVariant":"WORLD","tableColumns":{},"layout":{"x":1,"y":1,"width":2,"height":2},"imageUrl":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"3e74b34d-ffa4-4ab9-a0c0-501e95714a5b":{"description":"Bad request - Invalid JSON body or validation error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"title":{"type":"string","description":"Error type identifier","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.detail","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code when the error has one. `ip_not_allowed` means the organization only allows access from approved IP addresses and the caller’s address is not one.","uniqueKey":"error.code","typeLabel":"string"},"ip":{"oneOf":[{"type":"string","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.0","typeLabel":"string"},{"type":"null","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.ip","typeLabel":"string | null"}},"required":["title","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"title":"\u003cstring>","detail":"\u003cstring>","code":"\u003cstring>","ip":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"8378e2c7-9cfc-4a99-bfb6-da15820bf945":{"description":"Unauthorized - Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"title":{"type":"string","description":"Error type identifier","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.detail","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code when the error has one. `ip_not_allowed` means the organization only allows access from approved IP addresses and the caller’s address is not one.","uniqueKey":"error.code","typeLabel":"string"},"ip":{"oneOf":[{"type":"string","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.0","typeLabel":"string"},{"type":"null","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.ip","typeLabel":"string | null"}},"required":["title","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"title":"\u003cstring>","detail":"\u003cstring>","code":"\u003cstring>","ip":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f3bfb2a5-f82a-4494-97d7-a39ec730415a":{"description":"Forbidden - Organization trial has expired","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"title":{"type":"string","description":"Error type identifier","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.detail","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code when the error has one. `ip_not_allowed` means the organization only allows access from approved IP addresses and the caller’s address is not one.","uniqueKey":"error.code","typeLabel":"string"},"ip":{"oneOf":[{"type":"string","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.0","typeLabel":"string"},{"type":"null","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.ip","typeLabel":"string | null"}},"required":["title","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"title":"\u003cstring>","detail":"\u003cstring>","code":"\u003cstring>","ip":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a3a6446f-9eca-44fd-800a-13eb461890ea":{"description":"Not found - Organization not found or no admin access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"title":{"type":"string","description":"Error type identifier","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.detail","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code when the error has one. `ip_not_allowed` means the organization only allows access from approved IP addresses and the caller’s address is not one.","uniqueKey":"error.code","typeLabel":"string"},"ip":{"oneOf":[{"type":"string","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.0","typeLabel":"string"},{"type":"null","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.ip","typeLabel":"string | null"}},"required":["title","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"title":"\u003cstring>","detail":"\u003cstring>","code":"\u003cstring>","ip":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"1ccc5728-9b38-467a-a0eb-dfa0d5adc74c":{"description":"Unsupported media type - Content-Type must be application/json","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"title":{"type":"string","description":"Error type identifier","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.detail","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code when the error has one. `ip_not_allowed` means the organization only allows access from approved IP addresses and the caller’s address is not one.","uniqueKey":"error.code","typeLabel":"string"},"ip":{"oneOf":[{"type":"string","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.0","typeLabel":"string"},{"type":"null","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.ip","typeLabel":"string | null"}},"required":["title","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"title":"\u003cstring>","detail":"\u003cstring>","code":"\u003cstring>","ip":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d369255e-2d0d-4654-8e0f-fa4f3dc17ff0":{"description":"Rate limit exceeded - Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["retryAfterMs","title","detail"],"properties":{"title":{"type":"string","description":"Error type identifier","enum":["RateLimitExceeded"],"isRequired":true,"uniqueKey":"error.title","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.detail","typeLabel":"string"},"retryAfterMs":{"type":"number","description":"Milliseconds until the rate limit window resets","isRequired":true,"uniqueKey":"error.retryAfterMs","typeLabel":"number"},"code":{"type":"string","description":"Stable machine-readable code when the error has one. `ip_not_allowed` means the organization only allows access from approved IP addresses and the caller’s address is not one.","uniqueKey":"error.code","typeLabel":"string"},"ip":{"oneOf":[{"type":"string","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.0","typeLabel":"string"},{"type":"null","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.ip","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"title":"RateLimitExceeded","detail":"\u003cstring>","retryAfterMs":123,"code":"\u003cstring>","ip":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a9654151-9db6-4ba4-a9e3-467ceca4dfd6":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"title":{"type":"string","description":"Error type identifier","isRequired":true,"uniqueKey":"error.title","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error description","isRequired":true,"uniqueKey":"error.detail","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code when the error has one. `ip_not_allowed` means the organization only allows access from approved IP addresses and the caller’s address is not one.","uniqueKey":"error.code","typeLabel":"string"},"ip":{"oneOf":[{"type":"string","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.0","typeLabel":"string"},{"type":"null","description":"With `ip_not_allowed`: the caller’s IP address as Basedash saw it, which an organization admin can add under Settings → Security → Network access.","uniqueKey":"error.ip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.ip","typeLabel":"string | null"}},"required":["title","detail"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"title":"\u003cstring>","detail":"\u003cstring>","code":"\u003cstring>","ip":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d579fd85-bb35-442b-abf4-576dc77285d3":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key authentication using Bearer token format: `Bearer \u003cbasedash_api_key>`","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"b8dd8ffe-9c2a-4382-9d6b-7ff3222dccee":{"url":"https://charts.basedash.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key authentication using Bearer token format: `Bearer \u003cbasedash_api_key>`","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key authentication using Bearer token format: `Bearer \u003cbasedash_api_key>`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"https://charts.basedash.com/api/public/openapi"},"subdomain":"basedash","siteName":"Basedash Documentation","title":"Create a chart - Basedash Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T23:42:22.041Z","originalFileLocation":"api-reference/charts/create-a-chart.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Basedash Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a chart - Basedash Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Basedash Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.basedash.com/docs/api-reference/charts/create-a-chart\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://basedash.mintlify.site/docs/_mintlify/api/og/v2?division=Charts\u0026amp;title=Create+a+chart\u0026amp;description=Creates+a+new+chart+on+a+dashboard.+The+chart+is+placed+on+the+specified+tab+%28or+the+first+tab+by+default%29+at+the+bottom+of+the+tab+unless+a+layout+is+provided.\u0026amp;theme=a4ff02c04b1127ccea279f74\u0026amp;signature=ded21ecd7fd4a988e0c4b70854dc0b70be7bd564742ed258424095159d9b51c7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a chart - Basedash Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://basedash.mintlify.site/docs/_mintlify/api/og/v2?division=Charts\u0026amp;title=Create+a+chart\u0026amp;description=Creates+a+new+chart+on+a+dashboard.+The+chart+is+placed+on+the+specified+tab+%28or+the+first+tab+by+default%29+at+the+bottom+of+the+tab+unless+a+layout+is+provided.\u0026amp;theme=a4ff02c04b1127ccea279f74\u0026amp;signature=ded21ecd7fd4a988e0c4b70854dc0b70be7bd564742ed258424095159d9b51c7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/basedash/n_QsJmQ5wA_-S9WZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Basedash Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3C50FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.basedash.com/docs/api-reference/charts/create-a-chart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/charts/create-a-chart.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.basedash.com/#organization\",\"name\":\"Basedash Documentation\",\"url\":\"https://www.basedash.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/basedash/UcHJpOmrR3J146WE/logo/light.svg?fit=max\u0026auto=format\u0026n=UcHJpOmrR3J146WE\u0026q=85\u0026s=ffbaede88501c143a403b5850090b42a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.basedash.com/docs#website\",\"name\":\"Basedash Documentation\",\"url\":\"https://www.basedash.com/docs\",\"publisher\":{\"@id\":\"https://www.basedash.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.basedash.com/docs/api-reference/charts/create-a-chart#webpage\",\"url\":\"https://www.basedash.com/docs/api-reference/charts/create-a-chart\",\"name\":\"Create a chart\",\"description\":\"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.\",\"dateModified\":\"2026-11-20T23:42:22.041Z\",\"isPartOf\":{\"@id\":\"https://www.basedash.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.basedash.com/docs/api-reference/charts/create-a-chart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.basedash.com/docs/api-reference/charts/create-a-chart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://www.basedash.com/docs/api-reference/billing-accounts/list-billing-accounts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a chart\",\"item\":\"https://www.basedash.com/docs/api-reference/charts/create-a-chart\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.basedash.com/docs/api-reference/charts/create-a-chart#apireference\",\"headline\":\"Create a chart\",\"name\":\"Create a chart\",\"description\":\"Creates a new chart on a dashboard. The chart is placed on the specified tab (or the first tab by default) at the bottom of the tab unless a layout is provided. Requires admin access to the organization.\",\"url\":\"https://www.basedash.com/docs/api-reference/charts/create-a-chart\",\"mainEntityOfPage\":{\"@id\":\"https://www.basedash.com/docs/api-reference/charts/create-a-chart#webpage\"},\"dateModified\":\"2026-11-20T23:42:22.041Z\",\"publisher\":{\"@id\":\"https://www.basedash.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.basedash.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Basedash Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Basedash Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/charts/create-a-chart.md","siteName":"Basedash Documentation","nav":{"global":{"anchors":[{"anchor":"Changelog","icon":"clock-rotate-left","href":"https://www.basedash.com/changelog"},{"anchor":"Contact support","icon":"life-ring","href":"mailto:support@basedash.com"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started/welcome"}]},{"tab":"Data sources","pages":[{"title":"Data sources","href":"/data-sources/introduction"}]},{"tab":"Developers","groups":[{"group":"Get started","pages":[{"title":"Developer overview","sidebarTitle":"Overview","icon":"code","href":"/developers/overview"}]},{"group":"API","pages":[{"title":"Overview","href":"/api-reference/overview"}]},{"group":"Endpoints","pages":[{"group":"Billing accounts","pages":[{"title":"List billing accounts","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/billing-accounts","href":"/api-reference/billing-accounts/list-billing-accounts"},{"title":"Get a billing account","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/billing-accounts/{billingAccountId}","href":"/api-reference/billing-accounts/get-a-billing-account"},{"title":"List attached organizations","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/billing-accounts/{billingAccountId}/organizations","href":"/api-reference/billing-accounts/list-attached-organizations"},{"title":"Attach an organization","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/billing-accounts/{billingAccountId}/organizations","href":"/api-reference/billing-accounts/attach-an-organization"},{"title":"Detach an organization","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/billing-accounts/{billingAccountId}/organizations/{orgId}","href":"/api-reference/billing-accounts/detach-an-organization"},{"title":"Get pooled AI usage","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/billing-accounts/{billingAccountId}/ai-usage","href":"/api-reference/billing-accounts/get-pooled-ai-usage"}]},{"group":"Organizations","pages":[{"title":"List organizations","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations","href":"/api-reference/organizations/list-organizations"},{"title":"Create an organization","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations","href":"/api-reference/organizations/create-an-organization"},{"title":"List audit log events","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/audit-logs","href":"/api-reference/organizations/list-audit-log-events"},{"title":"Get AI usage","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/ai-usage","href":"/api-reference/organizations/get-ai-usage"},{"title":"Get an organization","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{id}","href":"/api-reference/organizations/get-an-organization"},{"title":"Delete an organization","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{id}","href":"/api-reference/organizations/delete-an-organization"},{"title":"Update an organization","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{id}","href":"/api-reference/organizations/update-an-organization"},{"title":"Upload organization icon","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{id}/icon","href":"/api-reference/organizations/upload-organization-icon"}]},{"group":"Embedding","pages":[{"title":"Upload embedded user avatar","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/embedded-users/{userId}/avatar","href":"/api-reference/embedding/upload-embedded-user-avatar"},{"title":"JWT authentication","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/sso/jwt","href":"/api-reference/embedding/jwt-authentication"}]},{"group":"Data Sources","pages":[{"title":"Get a data source","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/data-sources/{id}","href":"/api-reference/data-sources/get-a-data-source"},{"title":"Delete a data source","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/data-sources/{id}","href":"/api-reference/data-sources/delete-a-data-source"},{"title":"Update a data source","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/data-sources/{id}","href":"/api-reference/data-sources/update-a-data-source"},{"title":"List data sources","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/data-sources","href":"/api-reference/data-sources/list-data-sources"},{"title":"Create a data source","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/data-sources","href":"/api-reference/data-sources/create-a-data-source"},{"title":"Verify data source credentials","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/data-sources/verify","href":"/api-reference/data-sources/verify-data-source-credentials"},{"title":"List data source catalog","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/data-sources/{id}/catalog","href":"/api-reference/data-sources/list-data-source-catalog"},{"title":"Update data source catalog","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/data-sources/{id}/catalog","href":"/api-reference/data-sources/update-data-source-catalog"},{"title":"Get data source access","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/data-sources/{id}/access","href":"/api-reference/data-sources/get-data-source-access"},{"title":"Update data source access","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi put /api/public/organizations/{orgId}/data-sources/{id}/access","href":"/api-reference/data-sources/update-data-source-access"}]},{"group":"Automations","pages":[{"title":"List automations","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/automations","href":"/api-reference/automations/list-automations"},{"title":"Create an automation","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/automations","href":"/api-reference/automations/create-an-automation"},{"title":"Get an automation","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/automations/{id}","href":"/api-reference/automations/get-an-automation"},{"title":"Archive an automation","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/automations/{id}","href":"/api-reference/automations/archive-an-automation"},{"title":"Update an automation","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/automations/{id}","href":"/api-reference/automations/update-an-automation"},{"title":"Get automation access","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/automations/{id}/access","href":"/api-reference/automations/get-automation-access"},{"title":"Update automation access","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi put /api/public/organizations/{orgId}/automations/{id}/access","href":"/api-reference/automations/update-automation-access"},{"title":"List automation runs","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/automations/{id}/runs","href":"/api-reference/automations/list-automation-runs"},{"title":"Start an automation run","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/automations/{id}/runs","href":"/api-reference/automations/start-an-automation-run"},{"title":"Get an automation run","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/automations/{id}/runs/{runId}","href":"/api-reference/automations/get-an-automation-run"}]},{"group":"Models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/models","href":"/api-reference/models/list-models"},{"title":"Create a model","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/models","href":"/api-reference/models/create-a-model"},{"title":"Get a model","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/models/{id}","href":"/api-reference/models/get-a-model"},{"title":"Delete a model","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/models/{id}","href":"/api-reference/models/delete-a-model"},{"title":"Update a model","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/models/{id}","href":"/api-reference/models/update-a-model"}]},{"group":"MCP servers","pages":[{"title":"Get an MCP server","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/mcp-servers/{id}","href":"/api-reference/mcp-servers/get-an-mcp-server"},{"title":"Delete an MCP server","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/mcp-servers/{id}","href":"/api-reference/mcp-servers/delete-an-mcp-server"},{"title":"Update an MCP server","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/mcp-servers/{id}","href":"/api-reference/mcp-servers/update-an-mcp-server"},{"title":"List MCP servers","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/mcp-servers","href":"/api-reference/mcp-servers/list-mcp-servers"},{"title":"Create an MCP server","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/mcp-servers","href":"/api-reference/mcp-servers/create-an-mcp-server"}]},{"group":"Dashboards","pages":[{"title":"List dashboards","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/dashboards","href":"/api-reference/dashboards/list-dashboards"},{"title":"Create a dashboard","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/dashboards","href":"/api-reference/dashboards/create-a-dashboard"},{"title":"List charts on a dashboard","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/dashboards/{dashboardId}/charts","href":"/api-reference/dashboards/list-charts-on-a-dashboard"},{"title":"Create a dashboard tab","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/dashboards/{dashboardId}/tabs","href":"/api-reference/dashboards/create-a-dashboard-tab"},{"title":"Delete a dashboard tab","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/dashboards/{dashboardId}/tabs/{tabId}","href":"/api-reference/dashboards/delete-a-dashboard-tab"},{"title":"Update a dashboard tab","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/dashboards/{dashboardId}/tabs/{tabId}","href":"/api-reference/dashboards/update-a-dashboard-tab"},{"title":"Get a dashboard","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/dashboards/{id}","href":"/api-reference/dashboards/get-a-dashboard"},{"title":"Delete a dashboard","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/dashboards/{id}","href":"/api-reference/dashboards/delete-a-dashboard"},{"title":"Update a dashboard","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/dashboards/{id}","href":"/api-reference/dashboards/update-a-dashboard"},{"title":"Get dashboard access","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/dashboards/{id}/access","href":"/api-reference/dashboards/get-dashboard-access"},{"title":"Update dashboard access","description":"Replaces the access policy. Send the complete policy: groups and members not listed lose their access. Use mode \"everyone\" to give every organization member accessLevel (plus any listed groupAccess/memberAccess), or mode \"restricted\" so only the listed groups and members, the creator and organization admins can access it; restricting removes the default everyone access. groupAccess and memberAccess are required (send [] for none), and listing one principal twice with different levels is rejected. The GET response can be sent back unchanged, and sending the current policy again changes nothing. View-only members are capped at VIEW whatever their grant. For a dashboard in a folder, mode \"inherit\" removes the dashboard's own access so it uses its folder's access. Requires admin access to the organization.","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi put /api/public/organizations/{orgId}/dashboards/{id}/access","href":"/api-reference/dashboards/update-dashboard-access"}]},{"group":"Charts","pages":[{"title":"Create a chart","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/charts","href":"/api-reference/charts/create-a-chart"},{"title":"Get a chart","description":"Retrieves a chart by ID, including the content of its latest version (name, SQL query, chart type, axes) and its dashboard placement. Requires admin access to the organization.","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/charts/{id}","href":"/api-reference/charts/get-a-chart"},{"title":"Delete a chart","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/charts/{id}","href":"/api-reference/charts/delete-a-chart"},{"title":"Update a chart","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/charts/{id}","href":"/api-reference/charts/update-a-chart"},{"title":"Get a chart image","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/charts/{id}/image","href":"/api-reference/charts/get-a-chart-image"}]},{"group":"Insights","pages":[{"title":"List insights","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/insights","href":"/api-reference/insights/list-insights"},{"title":"Generate an insight","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/insights","href":"/api-reference/insights/generate-an-insight"},{"title":"Get an insight","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/insights/{id}","href":"/api-reference/insights/get-an-insight"},{"title":"Delete an insight","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/insights/{id}","href":"/api-reference/insights/delete-an-insight"}]},{"group":"Members","pages":[{"title":"List members","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/members","href":"/api-reference/members/list-members"},{"title":"Invite a member","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/members","href":"/api-reference/members/invite-a-member"},{"title":"Get a member","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/members/{id}","href":"/api-reference/members/get-a-member"},{"title":"Deactivate a member","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/members/{id}","href":"/api-reference/members/deactivate-a-member"},{"title":"Update a member","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/members/{id}","href":"/api-reference/members/update-a-member"}]},{"group":"Groups","pages":[{"title":"List groups","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/groups","href":"/api-reference/groups/list-groups"},{"title":"Create a group","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/groups","href":"/api-reference/groups/create-a-group"},{"title":"Get a group","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/groups/{id}","href":"/api-reference/groups/get-a-group"},{"title":"Delete a group","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/groups/{id}","href":"/api-reference/groups/delete-a-group"},{"title":"Update a group","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/groups/{id}","href":"/api-reference/groups/update-a-group"},{"title":"Add a member to a group","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/groups/{id}/members","href":"/api-reference/groups/add-a-member-to-a-group"}]},{"group":"Skills","pages":[{"title":"List skills","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/skills","href":"/api-reference/skills/list-skills"},{"title":"Create a skill","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/skills","href":"/api-reference/skills/create-a-skill"},{"title":"Get a skill","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/skills/{id}","href":"/api-reference/skills/get-a-skill"},{"title":"Delete a skill","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/skills/{id}","href":"/api-reference/skills/delete-a-skill"},{"title":"Update a skill","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi patch /api/public/organizations/{orgId}/skills/{id}","href":"/api-reference/skills/update-a-skill"}]},{"group":"Chats","pages":[{"title":"List chats","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/chats","href":"/api-reference/chats/list-chats"},{"title":"Start a chat","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/chats","href":"/api-reference/chats/start-a-chat"},{"title":"Get a chat","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/chats/{chatId}","href":"/api-reference/chats/get-a-chat"},{"title":"Delete a chat","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi delete /api/public/organizations/{orgId}/chats/{chatId}","href":"/api-reference/chats/delete-a-chat"},{"title":"List messages in a chat","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/chats/{chatId}/messages","href":"/api-reference/chats/list-messages-in-a-chat"},{"title":"Send a follow-up message","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/chats/{chatId}/messages","href":"/api-reference/chats/send-a-follow-up-message"},{"title":"Get a message","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/chats/{chatId}/messages/{messageId}","href":"/api-reference/chats/get-a-message"},{"title":"Cancel a response","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi post /api/public/organizations/{orgId}/chats/{chatId}/messages/{messageId}/cancel","href":"/api-reference/chats/cancel-a-response"},{"title":"Stream an assistant message","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/chats/{chatId}/messages/{messageId}/events","href":"/api-reference/chats/stream-an-assistant-message"},{"title":"Get chat access","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi get /api/public/organizations/{orgId}/chats/{chatId}/access","href":"/api-reference/chats/get-chat-access"},{"title":"Update chat access","deprecated":null,"version":null,"openapi":"https://charts.basedash.com/api/public/openapi put /api/public/organizations/{orgId}/chats/{chatId}/access","href":"/api-reference/chats/update-chat-access"}]}]},{"group":"Embedding","pages":[{"title":"Embedding","icon":"code","href":"/developers/embedding"},{"title":"React SDK","icon":"code","href":"/developers/embedding-react-sdk"}]},{"group":"Recipes","pages":[{"title":"Recipes","icon":"book-open","href":"/recipes/overview"},{"title":"Multi-tenant embedding","icon":"building","href":"/recipes/multi-tenant-embedding"}]},{"group":"Agent briefs","hidden":true,"pages":[{"title":"Agent brief: multi-tenant embedding","sidebarTitle":"Agent brief","href":"/recipes/agents/multi-tenant-embedding"}]}]},{"tab":"Self-hosting","pages":[{"title":"Self-hosting","href":"/self-hosting/overview"}]}]},"basePath":"","title":"Create a chart - Basedash Documentation","deploymentId":"dpl_9NURmhhAnEA2MBJSAbn1GXd2czCa","buildId":"dpl_9NURmhhAnEA2MBJSAbn1GXd2czCa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CUPdegXL.js","snippetPresets-BQq89bX3.js","utils-CJtUu38r.js","style-to-object-BY3JEAdk.js","utils-Dl_iEV_c.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-I0bFVJaI.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Dcvlblmg.js","_Uint8Array-VGUeTT0n.js","isObject-FP1Yky1u.js","ApiExamples-D1A0XuKj.js","usePlaygroundInputsStore-Hc_6kXYj.js","shallow-BhhizytD.js","isEqual-D265BYHf.js","CodeSnippets-DSWAIz-b.js","CodeSnippet-BdmAY1za.js","getApiPlaygroundDisplay-BIdLkZxH.js","Page-Bvrdu_OS.js","api-description-markdown-3NHhqwNl.js","DynamicMarkdown-BGCZRsks.js","SectionHeading-DuqsJYtR.js","MethodPill-DNag51EN.js","getPastedJson-CedzOGYS.js","Check2Icon-0NvNj7H_.js","axios-CsQoIw0U.js","Markdown-B9bB45u8.js","AssistantPageLink-DniobXcL.js","dist-C_SYQzHz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}