Create a test-results upload
Internal. This endpoint is intended for internal use by Trunk’s analytics-cli and test-runner plugins. Use it at your own risk: it may change without notice.
Starts an upload of one CI run’s test results to a collection. PUT the results bundle to the returned uploadUrl before expiresAt. A repository Trunk does not know is created when remoteUrls is sent. Requires the Upload test results permission.
Authorizations
An API key, sent as Authorization: Bearer <key>. An organization admin creates one in the Trunk app under Settings → Developer → API Keys and chooses the permissions it holds. A key with none can read merge queues but change nothing in them. Permissions cover merge queues and test-result uploads, including the quarantine lookups a CI run makes before it uploads; any key can call the other Flaky Tests and Dynamic CI endpoints, including their writes.
Path Parameters
Body
The repository the tests ran in, and the client uploading.
Response
The upload, waiting for its bundle
A test-results upload, waiting for its bundle.