# Re-run a case under review

Source: https://amanucci.com/fr/docs/developers/api/cases/rerunUnderReview

## POST /v1/entities/{entityId}/cases/{caseId}/rerun-under-review

Re-run a case under review

Re-run a refused decision under review — a SIGNED act (`confirm_unsettled`, the confirm's seat and step-up): a live `unsettled_review` case a run refused under the entity's `refuse` policy is re-decided once with the per-run override `review`, which the run records as `unsettledPolicyOverride`. The re-run proposes the entry and closes the case `confirmed`. A retry before the re-run drains answers the same work item (200). Any other case is 409 `case_not_rerunnable`. A case the Assembler closed because its document was booked from another of its files (a scan's gate case its e-invoice booked) is 409 `case_booked_from_file`, in words naming the kind of file it was booked from.

Operation ID: `rerunUnderReview`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "caseId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  }
]
```

### Responses

#### 200 A retry before the re-run drained: the same item.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/RerunUnderReviewReplay"
    }
  }
}
```

#### 201 The re-run is enqueued.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/RerunUnderReviewResult"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 409 The world is not in the state the request assumed: a stale `expectedSeq`, or a transition already made.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
