---
title: "Test case quarantining setting changed"
method: POST
path: "test_case.quarantining_setting_changed"
---

# Test case quarantining setting changed

`POST test_case.quarantining_setting_changed` (webhook)

Emitted when the quarantining setting of a test case changes

## Payload

- object — Emitted when the quarantining setting of a test case changes
  - `type` 'test_case.quarantining_setting_changed', required — The type of webhook event that occurred
  - `test_case` object, required
    - `id` string, uuid, required — A stable unique identifier for the test
    - `repository` object, required
      - `html_url` string, uri, required — The URL of the repository
    - `html_url` string, uri, required — The URL of the test details
    - `name` string, required — The name of the test
    - `variant` string, required — The name of the test variant
    - `status` object, required
      - `value` 'healthy' | 'flaky' | 'broken', required — The current status value in lowercase
      - `reason` string, required — The reason for the current status
      - `timestamp` string, date-time, required — The timestamp of the current status change
    - `most_common_failures` object[], required — Several of the most common failures of the test. This is behind a feature flag, access to this feature can be requested by reaching out to the Trunk team.
      - `summary` string, required — The summary of the failure
      - `occurrence_count` integer, required — The number of occurrences of this failure
      - `last_occurrence` string, date-time — The timestamp of the last occurrence
    - `failure_rate_last_7d` number, required — The failure rate over the last 7 days
    - `failure_rate_last_24h` number, required — The failure rate over the last 24 hours
    - `file_path` string — The file path of the test
    - `parent` string — The parent of the test. This includes the test suite (depending on the test runner)
    - `classname` string — The class name of the test
    - `codeowners` string[], required — Code owners for the test
    - `pull_requests_impacted_last_7d` integer, required — The number of pull requests impacted in the last 7 days
    - `quarantined` boolean, required — Whether the test is quarantined. This is `true` when quarantining is enabled for the repo and either of the following applies: - The quarantine override is set to `ALWAYS_QUARANTINE` for this test - Automatic quarantining is enabled for the repo, and this test's status is either `flaky` or `broken` If this is `true`, the next test run will be marked as passed even if the test run conclusion is failed.
    - `ticket` object
      - `html_url` string, uri, required — The URL of the associated ticket
    - `test_suite` string — The test suite of the test (deprecated, use `parent` instead)
  - `quarantine_setting_changed` object, required — The quarantining setting that was changed
    - `actor` object, required — The details of the user that changed the quarantining setting
      - `full_name` string, required — The full name of the user that changed the quarantining setting
      - `email` string, required — The email of the user that changed the quarantining setting
    - `reason` string, nullable, required — The annotated reason for the quarantining setting change
    - `timestamp` string, date-time, required — The timestamp of the quarantining setting change
    - `previous_quarantining_setting` 'ALWAYS_QUARANTINE' | 'NEVER_QUARANTINE' | 'UNSPECIFIED', required — The previous quarantining setting (`UNSPECIFIED` means the repo default)
    - `updated_quarantining_setting` 'ALWAYS_QUARANTINE' | 'NEVER_QUARANTINE' | 'UNSPECIFIED', required — The updated quarantining setting (`UNSPECIFIED` means the repo default)

---

[API](https://skmtc.dev/trunk/apis/trunk-apis.md) · [All operations](https://skmtc.dev/trunk/apis/trunk-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trunk/trunk-apis/revisions/f7b911d8e24c/schema)
