# PatientThresholdsResource

Canonical page: https://docs.ovok.com/java-sdk/reference/patient-thresholds-resource

```java
public final class PatientThresholdsResource
```

Reads and sets one patient's vital thresholds. Get it from [`PatientsResource.thresholds()`](/java-sdk/reference/patients-resource#thresholds).

## Methods [#methods]

### retrieve [#retrieve]

```java
public JsonNode retrieve(
        String patientId,
        RequestOptions options) throws IOException, InterruptedException
```

Gets a patient's thresholds (`GET /v2/slim/threshold/patient/{patientId}`).

**Parameters:**

- `patientId`: the patient ID
- `options`: per-request options, such as the timeout

**Returns:** the response body

**Throws:**

- `IOException`: if the request cannot be sent or the response cannot be read
- `InterruptedException`: if the thread is interrupted while waiting for the response

### update [#update]

```java
public JsonNode update(
        String patientId,
        Object body,
        RequestOptions options) throws IOException, InterruptedException
```

Replaces a patient's thresholds (`PUT /v2/slim/threshold/patient/{patientId}`). Not retried on network errors.

**Parameters:**

- `patientId`: the patient ID
- `body`: the thresholds
- `options`: per-request options, such as the timeout

**Returns:** the response body

**Throws:**

- `IOException`: if the request cannot be sent or the response cannot be read
- `InterruptedException`: if the thread is interrupted while waiting for the response
