Skip to main content
POST
Create a chart on a view from a Vega-Lite subset spec

Body

application/json
base
string
required

Base id or slug

console
string

Console base URL

idempotencyKey
string

Idempotency key: a retry with the same key and request returns the created object (default: generated)

name
string

Chart name (overrides spec.name)

project
string

Console project id or slug; overrides the saved Console scope

spec
string

Chart: {viewId, name, spec:{mark, encoding}}, or just {mark, encoding} with --view and --name

view
string

View the chart reads (overrides spec.viewId)

Response

Success — body conforms to the @Returns schema.

baseRef
string
required
chart
object
required
consoleUrl
string
required
idempotencyKey
string
required
projectRef
string
required
success
boolean
required