Dismiss a queued run
const url = 'https://example.com/v1/projects/example/judging-queue/example/dismiss';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/projects/example/judging-queue/example/dismiss \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "reason": "example" }'Not worth judging: it leaves the open queue, with who dismissed it and why. reopen undoes it. Needs write on the project, as judging the run does.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ProjectId — opaque branded string.
Request Body
Section titled “Request Body”object
Examplegenerated
{ "reason": "example"}Responses
Section titled “Responses”The item, dismissed.
A queued run: never its content, only what it was and where it stands.
object
How a run ended.
The rules that queued it, each at the version that did.
object
The judge classes its rules want.
One of its rules wants any judgment.
The live judgments on the run so far, by class.
object
object
null: unclassified.
Where a queued run stands. judged: every rule that queued it has the judgment it wants. erased: the run’s content is gone (erased, or the run purged); the item shows nothing of it.
Who dismissed or reopened it last.
Why it was dismissed, when they said.
What the caller may do with the item, by the check the routes make (write on the project, as judging the run needs).
object
Example
{ "runStatus": "completed", "state": "open"}Malformed request body.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The run isn’t in the project’s queue (judging-item-not-found).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The item isn’t open (judging-item-not-open).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Server error (unmapped domain code or framework crash).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}