# Reopen a dismissed run

POST

/v1/projects/{projectId}/judging-queue/{runId}/reopen

```sh
curl --request POST \
  --url https://example.com/v1/projects/example/judging-queue/example/reopen \
  --header 'Authorization: Bearer <token>'
```

Back in the open queue. Only a dismissed item reopens: a judged one was closed by its judgments. Needs `write` on the project.

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.1.8/reference/api.md#bearerauth)**

## Parameters

### Path Parameters

**projectId**

required

string

ProjectId — opaque branded string.

**runId**

required

string

## Responses

### 200

The item, open again.

application/json

A queued run: never its content, only what it was and where it stands.

object

**runId**

required

string

**projectId**

required

string

**agentId**

string

**agentVersion**

string

**flowId**

required

string

**runStatus**

required

How a run ended.

string

Allowed values: completed failed cancelled

**completedAt**

required

string format: date-time

**rules**

required

The rules that queued it, each at the version that did.

Array\<object>

object

**ruleId**

required

string

**version**

required

integer

\>= 1

**wantedClassIds**

required

The judge classes its rules want.

Array\<string>

**anyJudgment**

required

One of its rules wants any judgment.

boolean

**progress**

required

The live judgments on the run so far, by class.

object

**total**

required

integer

**byClass**

required

Array\<object>

object

**judgeClassId**

required

`null`: unclassified.

string | null

**count**

required

integer

**addedAt**

required

string format: date-time

**state**

required

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.

string

Allowed values: open judged dismissed erased

**closedAt**

string format: date-time

**closedBy**

Who dismissed or reopened it last.

string

**reason**

Why it was dismissed, when they said.

string

**can**

required

What the caller may do with the item, by the check the routes make (`write` on the project, as judging the run needs).

object

**dismiss**

required

boolean

**reopen**

required

boolean

##### Example

```json
{
  "runStatus": "completed",
  "state": "open"
}
```

### 400

Malformed request body.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 404

The run isn’t in the project’s queue (`judging-item-not-found`).

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 409

The item wasn’t dismissed (`judging-item-not-open`).

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 500

Server error (unmapped domain code or framework crash).

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

## See also

- [`GET /v1/projects/{projectId}`: Fetch a project by id](https://docs.kindgi.com/v0.1.8/reference/api/operations/projectsget.md)
- [`PATCH /v1/projects/{projectId}`: Partially update a project](https://docs.kindgi.com/v0.1.8/reference/api/operations/projectsupdate.md)
- [`DELETE /v1/projects/{projectId}`: Delete a project (idempotent)](https://docs.kindgi.com/v0.1.8/reference/api/operations/projectsdelete.md)
- [`GET /v1/projects/{projectId}/judging-rules`: List a project's judging rules](https://docs.kindgi.com/v0.1.8/reference/api/operations/projectsjudgingruleslist.md)
- [Error code `judging-item-not-found`](https://docs.kindgi.com/v0.1.8/reference/errors.md#judging-item-not-found)
- [Error code `judging-item-not-open`](https://docs.kindgi.com/v0.1.8/reference/errors.md#judging-item-not-open)
- [Every error code](https://docs.kindgi.com/v0.1.8/reference/errors.md)
