# Create dashboard

```http
POST https://api.axiom.co/v2/dashboards
```

Creates a dashboard and generates a `uid` if you don't set one. If a dashboard with the `uid` already exists, updates it and returns `200`, which requires the current `version` or `overwrite: true`.

<Info>
  For the structure of the `dashboard` field, see [Dashboard JSON](/restapi/dashboard-json). To validate a dashboard document before you send it, use the JSON Schema at `https://axiom.co/docs/schemas/dashboard.json`.
</Info>

## Authentication

Authenticate using an API token or personal access token (PAT). Include the token as a Bearer token: `Authorization: Bearer <token>`. For more information, see [Tokens](/reference/tokens).

## Request body

Content type: `application/json` (required)

- `dashboard` (`DashboardDocument`; required)
- `labelIds` (array of string; items ≤ 500): Existing label IDs; replaces assignments when supplied, clears with [], and preserves them when omitted or null.
- `message` (string)
- `overwrite` (boolean; default `false`)
- `uid` (string): Stable external dashboard identifier (org-scoped unique).
- `version` (integer (int64)): Required for updates when overwrite is false.

## Responses

### 200: Updated dashboard

Content type: `application/json`

- `dashboard` (`DashboardResource`; required)
- `overwritten` (boolean)
- `status` (string; one of `"created"`, `"updated"`; required)

### 201: Created dashboard

Content type: `application/json`

- `dashboard` (`DashboardResource`; required)
- `overwritten` (boolean)
- `status` (string; one of `"created"`, `"updated"`; required)

### 400: Invalid dashboard payload

Content type: `application/json`

- `code` (string; required)
- `currentVersion` (integer (int64))
- `message` (string; required)
- `reason` (string)
- `uid` (string)

### 409: Dashboard already exists

Content type: `application/json`

- `code` (string; required)
- `currentVersion` (integer (int64))
- `message` (string; required)
- `reason` (string)
- `uid` (string)

### 412: Version conflict

Content type: `application/json`

- `code` (string; required)
- `currentVersion` (integer (int64))
- `message` (string; required)
- `reason` (string)
- `uid` (string)

## Schemas

### DashboardDocument

Same as `Dashboard`.

### DashboardResource

Object.

- `createdAt` (string (date-time); nullable): Creation time, present only for managed dashboards.
- `createdBy` (string; nullable): Creator, present only for managed dashboards.
- `dashboard` (`DashboardDocument`; required)
- `id` (string; required)
- `labelIds` (array of string; required)
- `labelNames` (array of string): Names of assigned labels, including with exclude=labels; [] when unassigned.
- `labels` (array of `Label`)
- `type` (string; one of `"managed"`, `"integration"`; required): Managed dashboards are saved documents; integration dashboards are read-only and generated for matching datasets.
- `uid` (string; required): Managed dashboard UID, or stable integration dashboard ID for read requests.
- `updatedAt` (string (date-time); nullable): Last save time, present only for managed dashboards.
- `updatedBy` (string; nullable): Last editor, present only for managed dashboards.
- `updatedByAgent` (boolean): true when the last save came from the MCP server
- `version` (integer (int64); nullable): Save version, present only for managed dashboards.

### Dashboard

Object. Other fields aren't allowed.

- `name` (string; length 1–100; required)
- `owner` (string; required): User ID of the dashboard owner. Use `X-AXIOM-EVERYONE` to make the dashboard accessible to all users in the organization.
- `description` (string; length ≤ 1000)
- `charts` (array of `Chart`; items ≤ 200; required)
- `layout` (array of `LayoutItem`; items ≤ 200; required)
- `sections` (array of `Section`; items ≤ 1000)
- `refreshTime` (integer; one of `0`, `15`, `60`, `300`; required)
- `schemaVersion` (integer; one of `2`; required)
- `against` (string; one of `"-1h"`, `"-3h"`, `"-6h"`, `"-12h"`, `"-1d"`, `"-3d"`, `"-7d"`, `"-1w"`, `"-2w"`, `"-3w"`, `"-30d"`, `"-60d"`, `"-90d"`): Relative time comparison offset. Compares the current time window against a previous period offset by this duration. Mutually exclusive with `againstTimestamp` — setting one clears the other. Use an empty string or omit to disable comparison.
- `againstTimestamp` (string; length ≤ 100): Absolute or relative timestamp to compare against. Mutually exclusive with `against` — setting one clears the other. Accepts ISO 8601, `now-{duration}` (e.g. `now-1h`), or epoch milliseconds as a string.
- `timeWindowStart` (string; length 1–100; required): Start of the dashboard time range. Use `qr-now-{duration}` for a quick range relative to now, where duration is a number followed by `s` (seconds), `m` (minutes), `h` (hours), `d` (days), or `w` (weeks). Examples: `qr-now-5m`, `qr-now-1h`, `qr-now-7d`. Alternatively, use a Unix epoch millisecond timestamp as a string (e.g. `1704067200000`).
- `timeWindowEnd` (string; length 1–100; required): End of the dashboard time range. Use `qr-now` for a rolling window that tracks the current time (pair with a `qr-now-{duration}` start), or a Unix epoch millisecond timestamp as a string (e.g. `1704153600000`).
- `uid` (string; pattern `^[A-Za-z0-9_-]{1,128}$`): Optional dashboard UID. Must contain only letters, numbers, underscores, or hyphens, with length 1-128 when provided.

### Label

Object.

- `color` (`LabelColor`; required)
- `description` (string; nullable)
- `id` (string; required)
- `name` (string; required)

### Chart

One of the following, selected by `type`:

- `TimeSeriesChart` (`type`: `"TimeSeries"`)
- `HeatmapChart` (`type`: `"Heatmap"`)
- `LogStreamChart` (`type`: `"LogStream"`)
- `PieChart` (`type`: `"Pie"`)
- `ScatterChart` (`type`: `"Scatter"`)
- `TableChart` (`type`: `"Table"`)
- `TopKChart` (`type`: `"TopK"`)
- `StatisticChart` (`type`: `"Statistic"`)
- `GaugeChart` (`type`: `"Gauge"`)
- `NoteChart` (`type`: `"Note"`)
- `MonitorListChart` (`type`: `"MonitorList"`)
- `SmartFilterChart` (`type`: `"SmartFilter"`)
- `SpacerChart` (`type`: `"Spacer"`)
- `VisualizeChart` (`type`: `"Visualize"`)

### LayoutItem

Object. Other fields aren't allowed.

- `i` (string; length 1–200; required)
- `x` (integer; value 0–11; required)
- `y` (number; value ≥ 0; nullable; required)
- `w` (integer; value 1–12; required)
- `h` (number; value 0.5–100; required)
- `minW` (integer; value 1–12)
- `minH` (number; value 0.5–100)
- `maxW` (integer; value 1–12)
- `maxH` (integer; value 1–100)
- `static` (boolean)

### Section

Object. Other fields aren't allowed.

- `id` (string (uuid); required)
- `title` (string; length 1–200; required)
- `defaultCollapsed` (boolean)

### LabelColor

Object.

- `name` (string; one of `"red"`, `"coral"`, `"orange"`, `"amber"`, `"yellow"`, `"lime"`, `"green"`, `"teal"`, `"blue"`, `"iris"`, `"purple"`, `"pink"`; required)
- `type` (string; one of `"palette"`; required)

### TimeSeriesChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"TimeSeries"`; required)
- `name` (string; length 1–500)
- `query` (`TimeSeriesChartQuery`; required)

### HeatmapChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Heatmap"`; required)
- `name` (string; length 1–500)
- `query` (`HeatmapChartQuery`; required)
- `colorScheme` (string; one of `"Blue"`, `"Orange"`, `"Red"`, `"Purple"`, `"Teal"`, `"Yellow"`, `"Green"`, `"Pink"`, `"Grey"`, `"Brown"`)

### LogStreamChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"LogStream"`; required)
- `name` (string; length 1–500)
- `query` (`SimpleChartQuery`; required)
- `tableSettings` (`TableSettings`)

### PieChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Pie"`; required)
- `name` (string; length 1–500)
- `query` (`SimpleChartQuery`; required)

### ScatterChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Scatter"`; required)
- `name` (string; length 1–500)
- `query` (`SimpleChartQuery`; required)

### TableChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Table"`; required)
- `name` (string; length 1–500)
- `query` (`SimpleChartQuery`; required)
- `tableSettings` (`TableSettings`)

### TopKChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"TopK"`; required)
- `name` (string; length 1–500)
- `query` (`SimpleChartQuery`; required)

### StatisticChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Statistic"`; required)
- `name` (string; length 1–500)
- `query` (`SimpleChartQuery`; required)
- `colorScheme` (string; one of `"Blue"`, `"Orange"`, `"Red"`, `"Purple"`, `"Teal"`, `"Yellow"`, `"Green"`, `"Pink"`, `"Grey"`, `"Brown"`)
- `customUnits` (string; length ≤ 200)
- `showChart` (one of boolean, string)
- `hideValue` (boolean)
- `chartHeight` (one of string; length ≤ 100, number)
- `errorThreshold` (string; one of `"Above"`, `"AboveOrEqual"`, `"Below"`, `"BelowOrEqual"`, `"AboveOrBelow"`)
- `errorThresholdValue` (string; length ≤ 100)
- `warningThreshold` (string; one of `"Above"`, `"AboveOrEqual"`, `"Below"`, `"BelowOrEqual"`, `"AboveOrBelow"`)
- `warningThresholdValue` (string; length ≤ 100)
- `roundTo` (integer; value 0–10)
- `invertTheme` (boolean)
- `background` (string; length ≤ 200)
- `textColor` (string; length ≤ 200)
- `labelColor` (string; length ≤ 200)
- `chartFillColor` (string; length ≤ 200)
- `okColorProps` (`StatisticChartColorProps`)
- `warningColorProps` (`StatisticChartColorProps`)
- `errorColorProps` (`StatisticChartColorProps`)

### GaugeChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Gauge"`; required)
- `name` (string; length 1–500)
- `query` (`SimpleChartQuery`; required)
- `segments` (array of `GaugeChartSegment`; items 1–100; required)
- `colorScale` (string; one of `"green-to-red"`, `"red-to-green"`)
- `showRing` (boolean)
- `labelMode` (string; one of `"none"`, `"boundaries"`, `"intervals"`)
- `showSparkline` (boolean)
- `scaleToTimeRange` (boolean)
- `scaleBaseDurationMs` (number; value > 0)
- `customUnits` (string; length ≤ 200)

### NoteChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Note"`; required)
- `text` (string; length 1–100000; required)
- `variant` (string; one of `""`, `"default"`, `"plain"`; nullable)

### MonitorListChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"MonitorList"`; required)
- `name` (string; length 1–500)
- `selectedMonitors` (array of string; length 1–200; items 1–200; required)
- `columns` (`MonitorListColumns`; required)

### SmartFilterChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"SmartFilter"`; required)
- `name` (string; length 1–500)
- `filters` (array of `SmartFilterConfig`; items 1–50; required)
- `logo` (string; length ≤ 2000)
- `logoDark` (string; length ≤ 2000)

### SpacerChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Spacer"`; required)
- `name` (string; length 1–500)
- `variant` (string; one of `"transparent"`, `"dashed"`, `"solid"`)

### VisualizeChart

Object. Other fields aren't allowed.

- `id` (string; length 1–200; required)
- `sectionId` (string (uuid))
- `type` (string; one of `"Visualize"`; required)
- `name` (string; length 1–500)
- `query` (`SimpleChartQuery`; required)
- `visualization` (`VisualizeConfiguration`; required)

### TimeSeriesChartQuery

One of the following:

- `TimeSeriesNonMetricsAplQuery`
- `TimeSeriesNativeMplQuery`

### HeatmapChartQuery

One of the following:

- `HeatmapNonMetricsAplQuery`
- `HeatmapNativeMplQuery`

### SimpleChartQuery

One of the following:

- `SimpleNonMetricsAplQuery`
- `SimpleNativeMplQuery`

### TableSettings

Object. Other fields aren't allowed.

- `columns` (array of `ColumnSetting`; items ≤ 500)
- `settings` (`DatasetStreamSettings`)

### StatisticChartColorProps

Object. Other fields aren't allowed.

- `background` (string; length ≤ 200)
- `chartFillColor` (string; length ≤ 200)
- `labelColor` (string; length ≤ 200)
- `textColor` (string; length ≤ 200)

### GaugeChartSegment

Object. Other fields aren't allowed.

- `from` (number; required)
- `to` (number; required)

### MonitorListColumns

Object. Other fields aren't allowed.

- `status` (boolean; required)
- `history` (boolean; required)
- `dataset` (boolean; required)
- `type` (boolean; required)
- `notifiers` (boolean; required)

### SmartFilterConfig

One of the following:

- `SmartFilterSearch`
- `SmartFilterSelect`

### VisualizeConfiguration

One of the following, selected by `type`:

- `ScatterVisualization` (`type`: `"scatter"`)
- `BarVisualization` (`type`: `"bar"`)
- `HorizontalBarVisualization` (`type`: `"horizontalBar"`)
- `HistogramVisualization` (`type`: `"histogram"`)
- `FrequencyBarVisualization` (`type`: `"frequencyBar"`)
- `VisualizeHeatmap` (`type`: `"heatmap"`)

### TimeSeriesNonMetricsAplQuery

Object. Other fields aren't allowed.

- `apl` (string; length 1–500000; required)
- `queryOptions` (`TimeSeriesQueryOptions`)

### TimeSeriesNativeMplQuery

Object. Other fields aren't allowed.

- `mpl` (string; length 1–500000; required)
- `queryOptions` (`TimeSeriesQueryOptions`)

### HeatmapNonMetricsAplQuery

Object. Other fields aren't allowed.

- `apl` (string; length 1–500000; required)
- `queryOptions` (`HeatmapQueryOptions`)

### HeatmapNativeMplQuery

Object. Other fields aren't allowed.

- `mpl` (string; length 1–500000; required)
- `queryOptions` (`HeatmapQueryOptions`)

### SimpleNonMetricsAplQuery

Object. Other fields aren't allowed.

- `apl` (string; length 1–500000; required)

### SimpleNativeMplQuery

Object. Other fields aren't allowed.

- `mpl` (string; length 1–500000; required)

### ColumnSetting

One of the following:

- string; length ≤ 500
- `AdvancedColumnSetting`

### DatasetStreamSettings

Object. Other fields aren't allowed.

- `fontSize` (string; length ≤ 20; pattern `^\d+px$`)
- `highlightSeverity` (boolean)
- `showRaw` (boolean)
- `showEvent` (boolean)
- `showTimestamp` (boolean)
- `wrapLines` (boolean)
- `hideNulls` (boolean)
- `fitColumns` (boolean)

### SmartFilterSearch

Object. Other fields aren't allowed.

- `id` (string; length ≤ 200; required)
- `name` (string; length ≤ 200; required)
- `active` (boolean)
- `type` (string; one of `"search"`; required)

### SmartFilterSelect

One of the following, selected by `selectType`:

- `SmartFilterSelectList` (`selectType`: `"list"`)
- `SmartFilterSelectQuery` (`selectType`: `"query"`)

### ScatterVisualization

Object. Other fields aren't allowed.

- `version` (number; one of `1`; required)
- `type` (string; one of `"scatter"`; required)
- `bindings` (`ScatterVisualizationBindings`; required)
- `settings` (`ScatterVisualizationSettings`; required)

### BarVisualization

Object. Other fields aren't allowed.

- `version` (number; one of `1`; required)
- `type` (string; one of `"bar"`; required)
- `bindings` (`BarVisualizationBindings`; required)
- `settings` (`VisualizeBarSettings`; required)

### HorizontalBarVisualization

Object. Other fields aren't allowed.

- `version` (number; one of `1`; required)
- `type` (string; one of `"horizontalBar"`; required)
- `bindings` (`HorizontalBarVisualizationBindings`; required)
- `settings` (`VisualizeBarSettings`; required)

### HistogramVisualization

Object. Other fields aren't allowed.

- `version` (number; one of `1`; required)
- `type` (string; one of `"histogram"`; required)
- `bindings` (`HistogramVisualizationBindings`; required)
- `settings` (`HistogramVisualizationSettings`; required)

### FrequencyBarVisualization

Object. Other fields aren't allowed.

- `version` (number; one of `1`; required)
- `type` (string; one of `"frequencyBar"`; required)
- `bindings` (`FrequencyBarVisualizationBindings`; required)
- `settings` (`FrequencyBarVisualizationSettings`; required)

### VisualizeHeatmap

Object. Other fields aren't allowed.

- `version` (number; one of `1`; required)
- `type` (string; one of `"heatmap"`; required)
- `bindings` (`VisualizeHeatmapBindings`; required)
- `settings` (`VisualizeHeatmapSettings`; required)

### TimeSeriesQueryOptions

Object. Other fields aren't allowed.

- `displayNull` (string; one of `"auto"`, `"null"`, `"span"`, `"zero"`, `""`): Controls how empty intervals are rendered in time series charts. `auto` infers from the query, `null` leaves gaps, `span` connects adjacent points, `zero` fills with zero.
- `overlayCharts` (string; one of `"true"`, `"false"`, `""`): When enabled, charts are overlaid on a single chart instead of stacked separately.
- `shownColumns` (string; length ≤ 10000)
- `timeSeriesVariant` (string; one of `"area"`, `"bars"`, `"line"`, `"lines"`, `""`)
- `timeSeriesView` (string; one of `"charts"`, `"resultsTable"`, `"charts|resultsTable"`, `""`)

### HeatmapQueryOptions

Object. Other fields aren't allowed.

- `timeSeriesView` (string; one of `"charts"`, `"resultsTable"`, `"charts|resultsTable"`, `""`)

### AdvancedColumnSetting

Object. Other fields aren't allowed.

- `name` (string; length ≤ 500; required)
- `width` (integer; value > 0, ≤ 9007199254740991)

### SmartFilterSelectList

Object. Other fields aren't allowed.

- `id` (string; length ≤ 200; required)
- `name` (string; length ≤ 200; required)
- `active` (boolean)
- `options` (`SmartFilterOptions`)
- `type` (string; one of `"select"`; required)
- `selectType` (string; one of `"list"`; required)

### SmartFilterSelectQuery

Object. Other fields aren't allowed.

- `id` (string; length ≤ 200; required)
- `name` (string; length ≤ 200; required)
- `active` (boolean)
- `options` (all of one of array of `SmartFilterOption`; items ≤ 200, string; one of `null`; nullable, string; one of `""`): Pre-defined options merged with the dynamic options returned by `query` at runtime. Typically used to seed a default option (for example an "All" entry with `unset: true`) so the filter has a sensible initial selection before — or independent of — query results.
- `type` (string; one of `"select"`; required)
- `selectType` (string; one of `"query"`; required)
- `query` (`SmartFilterQuery`)

### ScatterVisualizationBindings

Object. Other fields aren't allowed.

- `x` (`VisualizeAxisColumnRef`; required)
- `y` (`VisualizeNumericColumnRef`; required)
- `series` (`VisualizeCategoricalColumnRef`)

### ScatterVisualizationSettings

Object. Other fields aren't allowed.

- `colors` (`VisualizeColorSettings`)
- `xAxis` (`VisualizeAxisSettings`)
- `yAxis` (`VisualizeAxisSettings`)
- `legend` (`VisualizeLegendSettings`)

### BarVisualizationBindings

Object. Other fields aren't allowed.

- `category` (`VisualizeCategoricalColumnRef`; required)
- `value` (`VisualizeNumericColumnRef`; required)
- `series` (`VisualizeCategoricalColumnRef`)

### VisualizeBarSettings

One of the following:

- `VisualizeStandardAggregationSettings`
- `VisualizePercentileAggregationSettings`

### HorizontalBarVisualizationBindings

Object. Other fields aren't allowed.

- `category` (`VisualizeCategoricalColumnRef`; required)
- `value` (`VisualizeNumericColumnRef`; required)
- `series` (`VisualizeCategoricalColumnRef`)

### HistogramVisualizationBindings

Object. Other fields aren't allowed.

- `value` (`VisualizeNumericColumnRef`; required)

### HistogramVisualizationSettings

Object. Other fields aren't allowed.

- `binCount` (integer; value 1–200; required)
- `colors` (`VisualizeColorSettings`)
- `yAxis` (`VisualizeAxisSettings`)

### FrequencyBarVisualizationBindings

Object. Other fields aren't allowed.

- `category` (`VisualizeCategoricalColumnRef`; required)

### FrequencyBarVisualizationSettings

Object. Other fields aren't allowed.

- `categoryLimit` (integer; value 1–100; required)
- `colors` (`VisualizeColorSettings`)
- `yAxis` (`VisualizeAxisSettings`)

### VisualizeHeatmapBindings

Object. Other fields aren't allowed.

- `x` (`VisualizeCategoricalColumnRef`; required)
- `y` (`VisualizeCategoricalColumnRef`; required)

### VisualizeHeatmapSettings

Object. Other fields aren't allowed.

- `categoryLimit` (integer; value 1–100; required)

### SmartFilterOptions

One of the following:

- array of `SmartFilterOption`; items ≤ 200
- string; one of `null`; nullable
- string; one of `""`

### SmartFilterOption

Object. Other fields aren't allowed.

- `key` (string; length ≤ 500; required)
- `value` (string; length ≤ 10000; required)
- `default` (boolean)
- `unset` (boolean)

### SmartFilterQuery

One of the following:

- `SmartFilterAplQuery`
- `SmartFilterNativeMplQuery`

### VisualizeAxisColumnRef

Object. Other fields aren't allowed.

- `name` (string; length 1–500; required)
- `type` (string; one of `"datetime"`, `"integer"`, `"float"`; required)

### VisualizeNumericColumnRef

Object. Other fields aren't allowed.

- `name` (string; length 1–500; required)
- `type` (string; one of `"integer"`, `"float"`; required)

### VisualizeCategoricalColumnRef

Object. Other fields aren't allowed.

- `name` (string; length 1–500; required)
- `type` (string; one of `"string"`, `"boolean"`; required)

### VisualizeColorSettings

Object. Other fields aren't allowed.

- `palette` (string; one of `"axiom"`, `"polychrome"`; required)
- `assignment` (string; one of `"series-name"`, `"series-order"`; required)

### VisualizeAxisSettings

Object. Other fields aren't allowed.

- `scale` (string; one of `"linear"`, `"log"`; required)
- `range` (string; one of `"fit"`, `"includeZero"`; required)

### VisualizeLegendSettings

Object. Other fields aren't allowed.

- `position` (string; one of `"none"`, `"bottom"`, `"right"`; required)

### VisualizeStandardAggregationSettings

Object. Other fields aren't allowed.

- `aggregation` (string; one of `"avg"`, `"sum"`, `"count"`, `"min"`, `"max"`; required)
- `categoryLimit` (integer; value 1–100; required)
- `colors` (`VisualizeColorSettings`)
- `yAxis` (`VisualizeAxisSettings`)
- `legend` (`VisualizeLegendSettings`)

### VisualizePercentileAggregationSettings

Object. Other fields aren't allowed.

- `aggregation` (string; one of `"percentile"`; required)
- `percentile` (number; value 0–100; required)
- `categoryLimit` (integer; value 1–100; required)
- `colors` (`VisualizeColorSettings`)
- `yAxis` (`VisualizeAxisSettings`)
- `legend` (`VisualizeLegendSettings`)

### SmartFilterAplQuery

Object. Other fields aren't allowed.

- `apl` (string; length 1–500000; required): APL query that returns the list of options for the filter dropdown. The result must contain a `key` column and a `value` column — Axiom interprets each row as a `{ key, value }` pair for an option. Use `distinct` to collapse the source field to unique values, then `project` to expose the `key` and `value` columns.
  
  Example:
  ```
  ['dataset-name'] | distinct field_name | project key=field_name, value=field_name
  ```

### SmartFilterNativeMplQuery

Object. Other fields aren't allowed.

- `mpl` (string; length 1–500000; required): MPL query that returns the list of options for the filter dropdown. The query must group by exactly one tag — Axiom uses each distinct value of that tag as both the key and the value of an option. Use `align using last` to simplify the query.
  
  Example:
  ```
  dataset:metric | align using last | group by tag using count
  ```