Skip to content

[9.4] [Docs][Dashboards API] Add introduction and get-started overlay (#262396)#262853

Merged
kibanamachine merged 1 commit into
elastic:9.4from
kibanamachine:backport/9.4/pr-262396
Apr 13, 2026
Merged

[9.4] [Docs][Dashboards API] Add introduction and get-started overlay (#262396)#262853
kibanamachine merged 1 commit into
elastic:9.4from
kibanamachine:backport/9.4/pr-262396

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…tic#262396)

## Summary

This is the first in a series of focused PRs documenting the Dashboards
API for public release. The initial investigation and content drafting
was done in elastic#260969 — this series breaks that work into smaller,
reviewable chunks.

### This PR (1/4) — Introduction and get-started overlay

Adds \`oas_docs/overlays/dashboards.overlays.yaml\`, which sets the tag
description for the \`Dashboards\` API group. The overlay covers:

- **When to use this API** vs the Visualizations API
- **Get started** — auth, CSRF header, and spaces prerequisites,
followed by a runnable \`curl\` example (ES|QL line chart using Kibana
sample data)
- **Dashboard structure** — data model (\`title\`, \`panels\`,
\`pinned_panels\`, \`filters\`/\`query\`/\`time_range\`), 48-column grid
explanation, and controls placement (sections vs pinned)
- **Panel types** — all panel types in a single table (\`vis\`,
\`discover_session\`, \`image\`, \`markdown\`, filter controls),
observability types (SLO, Synthetics), and a callout for types not yet
supported by the REST API (write operations return \`400\`; read
operations strip the panel and return a warning)
- **Embedding library items** — inline (full config in \`config\`) vs
linked-from-library (\`config.ref_id\`) patterns, with working examples
and a link to the Visualizations API for the full vis schema
- **ES|QL visualizations** — how to use \`data_source.type: "esql"\`
with metric and xy chart examples

Also wires the overlay into the makefile pipeline.

### Upcoming PRs in this series

| PR | Content |
|----|---------|
| 2/4 | Improved descriptions and titles for all 5 endpoints and their
request/response schemas |
| 3/4 | Request/response examples for each endpoint |
| 4/4 | Bump rendering simplification (strip \`additionalProperties\`,
schema ID cleanup, panel type title transforms) |

## Preview

https://bump.sh/elastic/hub/elastic-apis/doc/dashboards-api-cleanup-intro-and-get-started/operation/operation-get-dashboards

## Test plan

To preview locally:
\`\`\`bash
make -C oas_docs merge-api-docs-stateful
make -C oas_docs api-docs-overlay
make -C oas_docs api-docs-preview
\`\`\`

- [ ] \`make -C oas_docs merge-api-docs-stateful\` generates
\`output/kibana.yaml\` with \`/api/dashboards\` endpoints present
- [ ] \`make -C oas_docs api-docs-overlay\` applies the dashboards
overlay without errors
- [ ] \`make -C oas_docs api-docs-preview\` opens a Bump preview showing
the Dashboards tag with the full introduction

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d1ec64f)
@kibanamachine kibanamachine merged commit 5439a53 into elastic:9.4 Apr 13, 2026
20 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

cc @florent-leborgne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants