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 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

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