Skip to main content
PATCH
/
api
/
v1
/
projects
/
{projectUuid}
/
sqlRunner
/
saved
/
{uuid}
cURL
curl --request PATCH \
  --url http://api/v1/projects/{projectUuid}/sqlRunner/saved/{uuid} \
  --header 'Content-Type: application/json' \
  --data '
{
  "versionedData": {
    "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>"
  },
  "unversionedData": {
    "spaceUuid": "<string>",
    "description": "<string>",
    "name": "<string>"
  }
}
'
{
  "results": {
    "savedSqlVersionUuid": "<string>",
    "savedSqlUuid": "<string>"
  },
  "status": "ok"
}

Path Parameters

projectUuid
string
required

the uuid for the project

uuid
string
required

the uuid for the saved sql chart

Body

application/json

the sql chart details to update

versionedData
object
unversionedData
object

Response

Success

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