Reports

Set a report’s chart, or clear it

Stores a ChartSpec on a saved query, or clears it with null to go back to deciding from the result shape. The spec is stored verbatim and not validated against columns, because the columns only exist after a run; a spec that stops fitting falls back to the guess at render time rather than erroring. Owner only, and its own route rather than a field on PUT /queries so that choosing a chart cannot collide with that endpoint’s optimistic-concurrency baseline. Session token only; API keys cannot reach this.

put/queries/{id}/chart

Request

  • Base URL: https://saturnsql.com/api
  • URL: https://saturnsql.com/api/queries/{id}/chart
  • Auth: HTTP bearer

Path parameters

idstring cuid required

Request body

Response

The stored configuration

successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.