Skip to Content
Charts

Create Chart

POST
/v0/projects/{idOrSlug}/charts

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
dashboardId?string|null|null
folderId?string|null|null
notebookId?string|null|null
name*string
description?string|null|null
chartType*string
Value in"bar""line""pie""area""widget""map""list""heatmap""radar""scatter""treemap""table"
queryConfig?|null
query*
position?|null

Response Body

Success

application/json
  1. response
id*string
Example Request
curl -X POST 'https://api.faststats.dev/v0/projects/string/charts' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "chartType": "bar",
  "query": {
    "type": "flow",
    "nodes": [
      {
        "id": "string"
      }
    ],
    "edges": [
      {
        "id": "string",
        "source": "string",
        "target": "string"
      }
    ]
  }
}'
Example Response
{
  "id": "string"
}