Skip to main content
POST
Get a list of distinct tests that failed in the given time range

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"

start_time
string<date-time>
required

The start time of the failing tests (inclusive). Must be within 7 days of the end time.

end_time
string<date-time>
required

The end time of the failing tests (exclusive). Must be within 7 days of the start time.

page_query
object
required

Pagination options for the list of tests.

Response

OK

tests
object[]
required

A page of failing test cases.

page
object
required

Pagination information for the list of test cases.