Skip to main content
POST
Add labels to a test

Authorizations

Authorization
string
header
required

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

testId
string
required

The test's globally unique id.

Minimum string length: 1
Example:

"bfeebcf4-0000-8000-8000-000000000001"

Body

application/json

The labels to add to a test, or to remove from it, by name.

labels
string[]
required

Label names, at most 50. A name listed twice counts once. Names match exactly, case included.

Required array length: 1 - 50 elements
Pattern: ^[a-zA-Z0-9_ -]{1,64}$

Response

The test's labels after the change

A test's labels, folded across their sources as on Test.labels.

labels
object[]
required
Maximum array length: 100