Skip to content

docs(api): sync the v2 spec from trunk2 and list the Flaky Tests endpoints - #498

Merged
acatxnamedvirtue merged 2 commits into
mainfrom
tylerbeebe/sync-v2-api-reference
Nov 16, 2026
Merged

acatxnamedvirtue merged 2 commits into
mainfrom
tylerbeebe/sync-v2-api-reference

Conversation

@acatxnamedvirtue

@acatxnamedvirtue acatxnamedvirtue commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

A one-off check of the API reference against trunk2 main found the Flaky Tests endpoints behind. This PR brings them up to date. The other products' gaps are left for a separate PR (see the end).

The spec (openapi-v2.json)

Re-copied from trunk2 main (ts/apps/public-api/openapi-v2.json). The file is copied whole, since the new pages render from it, so it also carries every other product's changes since the last sync:

  • New: monitors (list, get, create, edit), muting a monitor for one test or many, adding and removing labels, marking and clearing a test's flaky mark, and GET /v2/pull-requests/{id}/impacted-targets.
  • Removed: GET /v2/tests/{testId}/investigations and …/investigations/{investigationId}. Neither was in the sidebar.
  • Changed: 11 operations' descriptions or schemas, such as ticket linking, detection events, Dynamic CI plans and force overrides.

The sidebar (docs.json)

Adds the 18 Flaky Tests operations that had no sidebar entry, so no page:

  • Tests: get and unlink a test's ticket, quarantine one test or many, mark and clear flaky, and add and remove labels.
  • Monitors (new group): list, get, create and edit.
  • Monitored tests (new group): list a monitor's tests, and mute or unmute a monitor for one test or many.
  • Detection events (new group): list detection events.

The three **Internal.** CLI endpoints stay hidden, as before.

Permissions (api/authentication.mdx)

  • Adds the six Flaky Tests permissions the API now enforces (Quarantine tests, Flag tests, Manage monitors, Mute monitors, Link tickets, Create tickets). Each one's label and description is copied from the app's API key screen.
  • Corrects the "a key without permissions can still" line. It said such a key could make every Flaky Tests write, including creating a ticket, which is no longer true.

#495 changes the Upload test results row of that table. This PR only adds rows next to it, so whichever merges second may need a small rebase.

Not in this PR

  • 12 public operations from other products still have no sidebar entry: 5 Dynamic CI, 6 CI (jobs, annotations, log lines, a pull request's CI commits, workflow runs, failure clusters) and 1 impacted-targets read.
  • The permission table still lacks four permissions: Generate Dynamic CI plans, Force CI jobs to run, Update Dynamic CI settings and Read CI logs.
  • POST /v2/pull-requests/{id}/rerun-failed-checks is covered by docs(merge-queue): re-run failed checks #468.

Checks

  • mint broken-links finds the same 11 broken links as main, none in these files. A deliberately misspelled /api/... link was reported, so the generated endpoint pages are checked too.
  • mint validate reports one error that main already has (merge-queue/optimizations/parallel-queues/api.mdx, {{github.run_id}}).
  • scripts/sync-changelog.py --check and scripts/check-redirects.py pass.

I haven't looked at the preview deployment yet. The sidebar renders client-side, so check the new groups there before merging.

🤖 Generated with Claude Code

Re-copies openapi-v2.json from trunk2 main: 14 operations are new (monitors,
muting, labels, flaky marks, impacted targets read) and the two test
investigations endpoints are gone. Adds the 30 public operations that had no
sidebar entry, and the permissions the API now enforces to the
authentication page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
trunk 🟢 Ready View Preview Nov 16, 2026, 3:58 PM

Drops the Dynamic CI, CI and impacted-targets entries and their permission
rows from this PR, so it adds only the Flaky Tests operations. The synced
spec stays whole: the new pages render from it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@acatxnamedvirtue acatxnamedvirtue changed the title docs(api): sync the v2 spec from trunk2 and list every public endpoint docs(api): sync the v2 spec from trunk2 and list the Flaky Tests endpoints Nov 16, 2026
@acatxnamedvirtue
acatxnamedvirtue merged commit 76f7d9f into main Nov 16, 2026
5 checks passed
@mintlify

mintlify Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Docs PR opened: #499

Added a changelog entry on new Flaky Tests v2 API endpoints for monitors, labels and flaky marks, plus new key permissions.

This branch was successfully deployed

1 active deployment
staging — 349aa74e Deployed Nov 16, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant