Skip to main content
POST
/
flaky-tests
/
list-quarantined-tests
Get a list of quarantined tests
curl --request POST \
  --url https://api.trunk.io/v1/flaky-tests/list-quarantined-tests \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '
{
  "repo": {
    "host": "<string>",
    "owner": "<string>",
    "name": "<string>"
  },
  "org_url_slug": "<string>",
  "page_query": {
    "page_size": 50,
    "page_token": "<string>"
  }
}
'
{
  "quarantined_tests": [
    {
      "name": "<string>",
      "parent": "<string>",
      "file": "<string>",
      "classname": "<string>",
      "codeowners": [
        "<string>"
      ],
      "quarantined_at": "2023-11-07T05:31:56Z",
      "status_last_updated_at": "2023-11-07T05:31:56Z",
      "test_case_id": "<string>",
      "variant": "<string>"
    }
  ],
  "page": {
    "total_rows": 1,
    "total_pages": 1,
    "next_page_token": "<string>",
    "prev_page_token": "<string>",
    "last_page_token": "<string>",
    "page_index": 1
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.trunk.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-token
string
header
required

Body

application/json
repo
object
required

The repository to list tests for.

org_url_slug
string
required

The slug of your organization. Find this at https://app.trunk.io/trunk/settings under "Organization Name" > "Slug"

Example:

"my-trunk-org-slug"

page_query
object
required

Pagination options for the list of tests.

Response

OK

quarantined_tests
object[]
required

A page of quarantined test cases.

page
object
required

Pagination information for the list of test cases.