API
Reference
- Projects
- GETGet apiv1snowflakessois authenticated
- GETGet apiv1projects validate
- POSTPost apiv1projects validate
- DELDelete apiv1projects validate
- GETGet apiv1analyticsuser activity
- POSTPost apiv1analyticsuser activity download
- GETGet apiv1projects spaces
- POSTPost apiv1projects rename
- POSTPost apiv1projects renamechart
- GETGet apiv1projects renamechart fields
- GETGet apiv1projects
- GETGet apiv1projects charts
- GETGet apiv1projects chart summariesdeprecated
- GETGet apiv1projects groupaccesses
- POSTPost apiv1projects calculate total
- POSTPost apiv1projects calculate subtotals
- GETGet apiv1projects user credentials
- PATCHPatch apiv1projects user credentials
- GETGet apiv1projects custom metrics
- PATCHPatch apiv1projects metadata
- GETGet apiv1projects dashboards
- POSTPost apiv1projects dashboards
- PATCHPatch apiv1projects dashboards
- POSTPost apiv1projects createpreview
- PATCHPatch apiv1projects schedulersettings
- GETGet apiv1projects tags
- POSTPost apiv1projects tags
- DELDelete apiv1projects tags
- PATCHPatch apiv1projects tags
- PUTPut apiv1projects tagsyaml
- GETGet apiv1projects chartscode
- GETGet apiv1projects dashboardscode
- POSTPost apiv1projects charts code
- POSTPost apiv1projects dashboards code
- POSTPost apiv1projects dbt cloudwebhook
- POSTPost apiv1projects refresh
- GETGet apiv1projects explores
- PUTPut apiv1projects explores
- GETGet apiv1projects explores 1
- POSTPost apiv1projects explores compilequery
- POSTPost apiv1projects explores downloadcsv
- GETGet apiv1bigqueryssodatasets
- GETGet apiv1bigqueryssois authenticated
- GET
- My Account
- User attributes
- SSH Keypairs
- SQL runner
- Spotlight
- Spaces
- Roles & Permissions
- Integrations
- Share links
- Schedulers
- Exploring
- Charts
- Content
- Organizations
- Notifications
- Metrics Explorer
- User Groups
- API Reference
- Git Integration
- Dashboards
- Exports
- Comments
- Catalog
- v2
Projects
Get apiv1projects chartscode
Charts as code
GET
/
api
/
v1
/
projects
/
{projectUuid}
/
charts
/
code
Copy
Ask AI
{
"results": {
"offset": 123,
"total": 123,
"missingIds": [
"<string>"
],
"languageMap": [
{
"chart": {}
}
],
"charts": [
{
"description": "<string>",
"name": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"slug": "<string>",
"tableName": "<string>",
"metricQuery": {
"metadata": {
"hasADateDimension": {
"name": "<string>",
"label": "<string>",
"table": "<string>"
}
},
"timezone": "<string>",
"metricOverrides": {},
"customDimensions": [
{
"id": "<string>",
"name": "<string>",
"table": "<string>",
"type": "bin",
"dimensionId": "<string>",
"binType": "fixed_number",
"binNumber": 123,
"binWidth": 123,
"customRange": [
{
"to": 123,
"from": 123
}
]
}
],
"additionalMetrics": [
{
"label": "<string>",
"type": "percentile",
"description": "<string>",
"sql": "<string>",
"hidden": true,
"round": 123,
"compact": "thousands",
"format": "km",
"table": "<string>",
"name": "<string>",
"index": 123,
"filters": [
{
"values": [
"<any>"
],
"operator": "isNull",
"id": "<string>",
"target": {
"fieldRef": "<string>"
},
"settings": "<any>",
"disabled": true,
"required": true
}
],
"baseDimensionName": "<string>",
"uuid": "<string>",
"percentile": 123,
"formatOptions": {
"type": "default",
"round": 123,
"separator": "default",
"currency": "<string>",
"compact": "thousands",
"prefix": "<string>",
"suffix": "<string>",
"timeInterval": "RAW",
"custom": "<string>"
}
}
],
"tableCalculations": [
{
"type": "number",
"format": {
"type": "default",
"round": 123,
"separator": "default",
"currency": "<string>",
"compact": "thousands",
"prefix": "<string>",
"suffix": "<string>",
"timeInterval": "RAW",
"custom": "<string>"
},
"sql": "<string>",
"displayName": "<string>",
"name": "<string>",
"index": 123
}
],
"limit": 123,
"sorts": [
{
"descending": true,
"fieldId": "<string>"
}
],
"filters": {
"tableCalculations": {
"or": [
"<any>"
],
"id": "<string>"
},
"metrics": {
"or": [
"<any>"
],
"id": "<string>"
},
"dimensions": {
"or": [
"<any>"
],
"id": "<string>"
}
},
"metrics": [
"<string>"
],
"dimensions": [
"<string>"
],
"exploreName": "<string>"
},
"pivotConfig": {
"columns": [
"<string>"
]
},
"chartConfig": {
"config": {
"comparisonLabel": "<string>",
"flipColors": true,
"comparisonFormat": "raw",
"showComparison": true,
"showBigNumberLabel": true,
"selectedField": "<string>",
"style": "thousands",
"label": "<string>"
},
"type": "big_number"
},
"tableConfig": {
"columnOrder": [
"<string>"
]
},
"downloadedAt": "2023-11-07T05:31:56Z",
"spaceSlug": "<string>",
"version": 123,
"dashboardSlug": "<string>"
}
]
},
"status": "ok"
}
Path Parameters
Response
200
application/json
Success
The response is of type object
.
Copy
Ask AI
{
"results": {
"offset": 123,
"total": 123,
"missingIds": [
"<string>"
],
"languageMap": [
{
"chart": {}
}
],
"charts": [
{
"description": "<string>",
"name": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"slug": "<string>",
"tableName": "<string>",
"metricQuery": {
"metadata": {
"hasADateDimension": {
"name": "<string>",
"label": "<string>",
"table": "<string>"
}
},
"timezone": "<string>",
"metricOverrides": {},
"customDimensions": [
{
"id": "<string>",
"name": "<string>",
"table": "<string>",
"type": "bin",
"dimensionId": "<string>",
"binType": "fixed_number",
"binNumber": 123,
"binWidth": 123,
"customRange": [
{
"to": 123,
"from": 123
}
]
}
],
"additionalMetrics": [
{
"label": "<string>",
"type": "percentile",
"description": "<string>",
"sql": "<string>",
"hidden": true,
"round": 123,
"compact": "thousands",
"format": "km",
"table": "<string>",
"name": "<string>",
"index": 123,
"filters": [
{
"values": [
"<any>"
],
"operator": "isNull",
"id": "<string>",
"target": {
"fieldRef": "<string>"
},
"settings": "<any>",
"disabled": true,
"required": true
}
],
"baseDimensionName": "<string>",
"uuid": "<string>",
"percentile": 123,
"formatOptions": {
"type": "default",
"round": 123,
"separator": "default",
"currency": "<string>",
"compact": "thousands",
"prefix": "<string>",
"suffix": "<string>",
"timeInterval": "RAW",
"custom": "<string>"
}
}
],
"tableCalculations": [
{
"type": "number",
"format": {
"type": "default",
"round": 123,
"separator": "default",
"currency": "<string>",
"compact": "thousands",
"prefix": "<string>",
"suffix": "<string>",
"timeInterval": "RAW",
"custom": "<string>"
},
"sql": "<string>",
"displayName": "<string>",
"name": "<string>",
"index": 123
}
],
"limit": 123,
"sorts": [
{
"descending": true,
"fieldId": "<string>"
}
],
"filters": {
"tableCalculations": {
"or": [
"<any>"
],
"id": "<string>"
},
"metrics": {
"or": [
"<any>"
],
"id": "<string>"
},
"dimensions": {
"or": [
"<any>"
],
"id": "<string>"
}
},
"metrics": [
"<string>"
],
"dimensions": [
"<string>"
],
"exploreName": "<string>"
},
"pivotConfig": {
"columns": [
"<string>"
]
},
"chartConfig": {
"config": {
"comparisonLabel": "<string>",
"flipColors": true,
"comparisonFormat": "raw",
"showComparison": true,
"showBigNumberLabel": true,
"selectedField": "<string>",
"style": "thousands",
"label": "<string>"
},
"type": "big_number"
},
"tableConfig": {
"columnOrder": [
"<string>"
]
},
"downloadedAt": "2023-11-07T05:31:56Z",
"spaceSlug": "<string>",
"version": 123,
"dashboardSlug": "<string>"
}
]
},
"status": "ok"
}
Assistant
Responses are generated using AI and may contain mistakes.