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
name*string
description?string|null|null
chartType*string
Value in"widget""line""area""bar""pie""map""list""heatmap""radar""scatter"
queryConfig?|null
query*
position?|null

Response Body

Success

application/json
  1. response
id*string
curl -X POST "https://example.com/v0/projects/string/charts" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "chartType": "widget",    "query": {      "type": "flow",      "nodes": [        {          "id": "string"        }      ],      "edges": [        {          "id": "string",          "source": "string",          "target": "string"        }      ]    }  }'
{  "id": "string"}