# One case

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

## GET /v1/entities/{entityId}/cases/{caseId}

One case

One case with its subject ROWS (the event version and its frozen snapshot, the decision run's outcome and checks, the artifact, the open item, the work item), the pending entry its treatment names with the lines as strings, the machine's `proposedTreatment`, and the client requests asked on it, each naming its `asker` through the shared renderer. A case under another entity's books answers the same 404 as one that does not exist; so does, for a client seat, a case that is not waiting on it; one that is reads without its kind, the machine's proposal, pending entry and reasoning, the frozen snapshot, the run's checks or the work item's error — a person as `human`, a machine as `amanucci`.

Operation ID: `readCase`

### 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 The case.

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

#### 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"
    }
  }
}
```

#### 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"
    }
  }
}
```
