diff --git a/changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions.mdx b/changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions.mdx new file mode 100644 index 00000000..295c157a --- /dev/null +++ b/changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions.mdx @@ -0,0 +1,24 @@ +--- +title: "Flaky Tests: Monitors, labels and flaky marks in the v2 API" +description: "Manage monitors, mute them per test, mark tests flaky, label tests and read detection events through the v2 API, with new API key permissions." +date: 2026-11-16 +category: Flaky Tests +type: new-feature +--- + +**You can now manage monitors and flag tests from the v2 API, not only from the web app.** + +### New features + +- **Monitors.** [List](/api/monitors/list-monitors), [get](/api/monitors/get-a-monitor), [create](/api/testcollections/create-a-monitor) and [edit](/api/monitors/edit-a-monitor) a test collection's monitors. Turning a monitor off through the API deactivates it on every test, as it does in the web app. +- **Mute a monitor for some tests.** [Mute](/api/monitortests/mute-a-monitor-for-one-test) or [unmute](/api/monitortests/unmute-a-monitor-for-one-test) a monitor for one test, or [mute](/api/monitortests/mute-a-monitor-for-many-tests) and [unmute](/api/monitortests/unmute-a-monitor-for-many-tests) it for many at once. A mute lasts up to 30 days or has no end. [List a monitor's tests](/api/monitortests/list-a-monitors-tests) to see where it is active. +- **Mark tests flaky.** [Mark a test flaky](/api/tests/mark-a-test-flaky) or [clear the mark](/api/tests/clear-a-tests-flaky-mark), as **Flag as Flaky** does in the web app. +- **Label tests.** [Add](/api/tests/add-labels-to-a-test) or [remove](/api/tests/remove-labels-from-a-test) a test's labels. A new label name creates the label. +- **Detection events.** [List detection events](/api/detectionevents/list-detection-events) to see each verdict your monitors recorded on a test, over a window of up to 30 days. + +### Updates + +- **New API key permissions.** Flaky Tests writes now need a matching permission on the API key: **Quarantine tests**, **Flag tests**, **Manage monitors**, **Mute monitors**, **Link tickets** and **Create tickets**. A key without permissions can still read collections, tests, monitors and detection events. If a key lacks a permission, the API returns `403 INSUFFICIENT_PERMISSIONS`. See [Permissions](/api/authentication#permissions). +- **Read a pull request's impacted targets.** A new v2 endpoint returns the impacted targets uploaded for a pull request. + +See the [API reference](/api) for all v2 endpoints. diff --git a/changelog/index.mdx b/changelog/index.mdx index 16484527..37379986 100644 --- a/changelog/index.mdx +++ b/changelog/index.mdx @@ -8,6 +8,12 @@ rss: true ### November 2026 + + **[Flaky Tests: Monitors, labels and flaky marks in the v2 API](/changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions)** + + Manage monitors, mute them per test, mark tests flaky, label tests and read detection events through the v2 API, with new API key permissions. + + **[Browser Extension 1.12.0: GitHub's new pull request Overview page](/changelog/2026-11-10-browser-extension-1-12-0)** diff --git a/docs.json b/docs.json index 898a21f6..fe419b74 100644 --- a/docs.json +++ b/docs.json @@ -1024,6 +1024,7 @@ { "group": "November", "pages": [ + "changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions", "changelog/2026-11-10-browser-extension-1-12-0", "changelog/2026-11-04-dynamic-ci-impacts-and-action-updates", "changelog/2026-11-03-code-quality-cli-1-29-0" diff --git a/flaky-tests/changelog.mdx b/flaky-tests/changelog.mdx index 710e605a..1f58cdc6 100644 --- a/flaky-tests/changelog.mdx +++ b/flaky-tests/changelog.mdx @@ -7,6 +7,14 @@ og:title: "Trunk Flaky Tests changelog" ## 2026 +### November 2026 + + + **[Flaky Tests: Monitors, labels and flaky marks in the v2 API](/changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions)** + + Manage monitors, mute them per test, mark tests flaky, label tests and read detection events through the v2 API, with new API key permissions. + + ### October 2026