Document the Tags as Code CRUD API (/api/tags)#7038
Open
florent-leborgne wants to merge 6 commits into
Open
Conversation
Document the new /api/tags CRUD API (Tags as code) introduced in elastic/kibana#266220. Adds a conceptual section pointing to the auto-generated API reference rather than duplicating endpoint schemas, notes the deprecation of /api/saved_objects_tagging, and scopes the content as experimental (preview) since 9.5. Refs #6682 Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
Contributor
🔍 Preview links for changed docs |
The /api/tags route declares availability.stability 'experimental', so tag the section with the experimental lifecycle rather than preview. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Link directly to the endpoint-tags group pages (stateful and serverless). These 404 until the OAS bundle publishes for 9.5; do not merge until the Tags API reference is live. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Docs review summaryFocus areas
Nits
Notes
|
kosabogi
approved these changes
Jun 22, 2026
kosabogi
left a comment
Member
There was a problem hiding this comment.
I left a comment with two questions rather than suggestions. Otherwise, LGTM.
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
Do not merge yet. The links below point to the dedicated Tags API reference pages, which 404 until the OAS bundle publishes for 9.5. Merge only once the Tags API reference is live. Currently checking with dev team
Summary
Adds a Manage tags programmatically section to the Tags page documenting the new
/api/tagsCRUD API ("Tags as code"), introduced in elastic/kibana#266220.The section:
/api/tagsreplaces the now-deprecated/api/saved_objects_taggingtag CRUD endpoints (confirmed deprecated in code with structuredmigratemetadata).experimentalsince 9.5 (stack) andexperimental(serverless), matching the route'savailability.stabilitymetadata.Why this scope
The API ships with
access: 'public'and full OpenAPI metadata (oas-tag:Tags,availability: { since: '9.5.0', stability: 'experimental' }), so its endpoints, parameters, and schemas will be auto-generated in the API reference. Reproducing them in narrative docs would duplicate the reference and drift. The narrative docs cover only what the reference can't: discoverability, the conceptual "what + why", and the deprecation/migration pointer.Pending links (blocking merge)
The section links directly to the dedicated Tags API reference pages, which don't exist yet (they 404 today) and won't publish until the OAS bundle is regenerated for 9.5:
https://www.elastic.co/docs/api/doc/kibana/group/endpoint-tagshttps://www.elastic.co/docs/api/doc/serverless/group/endpoint-tagsThese are the correct slugs — the legacy routes' own
deprecated.documentationUrlpoints atendpoint-tags. Verify they resolve before merging.Blocking dependency: OAS generation
The
/api/tagsroutes are public in code but are not yet present in either bundled spec onmain(oas_docs/output/kibana.yaml,oas_docs/output/kibana.serverless.yaml). Until the tagging plugin's routes are captured into the OAS bundle, the API won't appear at elastic.co/docs/api. Action: confirm with the Kibana/as-code team that the tagging plugin is wired into OAS generation before/at the 9.5 cut.Screenshots to add or update
None — the new section is text-only.
Refs #6682