Path Parameters
the uuid for the project
Body
application/json
the sql chart to create
curl --request POST \
--url http://api/v1/projects/{projectUuid}/sqlRunner/saved \
--header 'Content-Type: application/json' \
--data '
{
"spaceUuid": "<string>",
"config": {
"type": "vertical_bar",
"metadata": {
"version": 123
},
"display": {
"stack": true,
"legend": {
"align": "start",
"position": "top"
},
"series": {},
"yAxis": [
{
"format": "km",
"position": "<string>",
"label": "<string>"
}
],
"xAxis": {
"type": "time",
"label": "<string>"
}
},
"fieldConfig": {
"sortBy": [
{
"direction": "ASC",
"reference": "<string>"
}
],
"groupBy": [
{
"reference": "<string>"
}
],
"y": [
{
"aggregation": "sum",
"reference": "<string>"
}
],
"x": {
"type": "time",
"reference": "<string>"
}
}
},
"limit": 123,
"sql": "<string>",
"description": "<string>",
"name": "<string>"
}
'{
"results": {
"slug": "<string>",
"savedSqlUuid": "<string>"
},
"status": "ok"
}Create sql chart
curl --request POST \
--url http://api/v1/projects/{projectUuid}/sqlRunner/saved \
--header 'Content-Type: application/json' \
--data '
{
"spaceUuid": "<string>",
"config": {
"type": "vertical_bar",
"metadata": {
"version": 123
},
"display": {
"stack": true,
"legend": {
"align": "start",
"position": "top"
},
"series": {},
"yAxis": [
{
"format": "km",
"position": "<string>",
"label": "<string>"
}
],
"xAxis": {
"type": "time",
"label": "<string>"
}
},
"fieldConfig": {
"sortBy": [
{
"direction": "ASC",
"reference": "<string>"
}
],
"groupBy": [
{
"reference": "<string>"
}
],
"y": [
{
"aggregation": "sum",
"reference": "<string>"
}
],
"x": {
"type": "time",
"reference": "<string>"
}
}
},
"limit": 123,
"sql": "<string>",
"description": "<string>",
"name": "<string>"
}
'{
"results": {
"slug": "<string>",
"savedSqlUuid": "<string>"
},
"status": "ok"
}the uuid for the project
the sql chart to create