Change what an open run declares
const url = 'https://beta-api.plune.ai/v1/runs/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"configuration":{"expected":[{"testCaseId":"example","externalKey":{}}],"matrix":{"additionalProperty":["example"]}},"meta":{"sha":"example","branch":"example","ciUrl":"https://example.com","runner":"example"},"title":"example","environment":"example","labels":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://beta-api.plune.ai/v1/runs/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "configuration": { "expected": [ { "testCaseId": "example", "externalKey": {} } ], "matrix": { "additionalProperty": [ "example" ] } }, "meta": { "sha": "example", "branch": "example", "ciUrl": "https://example.com", "runner": "example" }, "title": "example", "environment": "example", "labels": [ "example" ] }'Only while the run is open. Changing what a finished run EXPECTED would change its notRun after the fact, and the summary is frozen precisely so that cannot happen.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”object
What the run expects to happen. Without it, a crashed shard is indistinguishable from a green run.
object
object
object
object
object
Example generated
{ "configuration": { "expected": [ { "testCaseId": "example", "externalKey": {} } ], "matrix": { "additionalProperty": [ "example" ] } }, "meta": { "sha": "example", "branch": "example", "ciUrl": "https://example.com", "runner": "example" }, "title": "example", "environment": "example", "labels": [ "example" ]}Responses
Section titled “ Responses ”The updated run
object
object
The value rerun is reached only by joining a terminated run again — it is never requested.
What the run expects to happen. Without it, a crashed shard is indistinguishable from a green run.
object
object
object
object
object
What to call this run in a list. The first shard to declare one wins; a shard that arrives later fills a field left empty rather than overwriting.
Where it ran — staging, prod, a preview. Filterable on GET /v1/runs, so two CI matrices read as two histories.
How the run is marked — smoke, nightly, a team name. An empty array is how every mark is removed.
What a run amounted to, frozen at finish. Distinct from RunSummary, which is the list-item shape.
object
One entry per status that occurred; an absent key means zero.
object
Expected and never reported — what keeps a dead shard from looking green.
Example
{ "run": { "kind": "automated", "statusEvent": "launched" }}Unknown field or invalid configuration
object
Example generated
{ "error": "example"}No / invalid token or session
Not found or not yours
object
Example generated
{ "error": "example"}The run is closed
object
Example generated
{ "error": "example"}Rate limited