Set quarantine overrides on many tests
Requires the Quarantine tests permission.
Sets the quarantine override of each listed test, as POST /v2/tests/{testId}/quarantine does for one, and reports each test’s outcome in request order. The tests may be in different collections. At most 100 items, and a test listed twice refuses the whole request with VALIDATION_FAILED.
Each item either succeeded, was unchanged (already in that mode; reason is not recorded for it), or failed with an error: TEST_NOT_FOUND for an id that does not resolve to a test you can see (another organization’s included), INSUFFICIENT_PERMISSIONS for a test whose collection lets only admins set overrides, and INTERNAL_ERROR for one that could not be saved, which wrote nothing and may be sent again. One item failing does not undo the others. A caller without the permission is refused as a whole with 403.
The override is recorded as set by the API token, or by the person whose token made the call. A change a person makes sends the v2.test_case.quarantining_setting_changed webhook; a change made with an API token does not yet.
Idempotency-Key is not honored. The write is idempotent by state, so a request whose outcome is unknown (a 504 or a dropped connection) is safe to send again: a test already in the requested mode reports unchanged.
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.
Body
Quarantine overrides to set on many tests, with one reason for all of them.
Response
Each test's outcome, in request order
The outcome of each item of a many-form request. A request that is refused as a whole answers a coded error instead, never a BulkResult.