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 new key starts with no permissions: it can read merge queues but change nothing in them, and it cannot get a Dynamic CI plan. Each endpoint that needs a permission names it in its description; the Dynamic CI plan endpoints need Generate Dynamic CI plans.
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.