Create a test collection
Creates a test collection and returns it. Its id is server-assigned; testCaseCount is 0 until the collection’s first upload is ingested.
Authorizations
An org-scoped API key, sent as Authorization: Bearer <key>. Existing v1 tokens work here unchanged. There is no enqueue-only or read/write scope: an org key authorized for merge-queue writes can invoke every merge-queue mutation, including changing merge-protection configuration and pausing, draining or deleting a queue.
Body
Response
The created test collection
The collection's id.
"aB3xY9kQ"
"Backend integration tests"
"Owned by the platform team."
Distinct test cases seen in this collection. Reflects ingested uploads, so a brand-new collection reports 0 until its first upload is processed.
1284
Whether quarantining is turned on for this collection. False until configured.
true
Whether flaky tests are quarantined automatically. False until configured.
false
"2026-01-14T09:12:00.000Z"
"2026-07-20T16:44:10.000Z"