# Adjusting the system's gain

With this example, we will show you how to adjust HOLOPLOT’s system gain. This operation has two options: setting a specific target value or increasing/decreasing by an offset value. Those methods are `PUT /system-gain/db`, `PUT /system-gain/decrease`, and `PUT /system-gain/increase`.

## Decreasing the volume <a href="#decreasing-the-volume" id="decreasing-the-volume"></a>

Let’s decrease the volume by `6 dB`. The respective cURL and AppleScript commands are:

{% code title="cURL example" overflow="wrap" %}

```bash
curl -X 'PUT' \
  'http://localhost:6789/system-gain/decrease' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '6'
```

{% endcode %}

{% code title="AppleScript example" overflow="wrap" %}

```applescript
do shell script "curl -X 'PUT' 'http://localhost:6789/system-gain/increase' -H 'accept: application/json' -H 'Content-Type: application/json' -d '6'"
```

{% endcode %}

<figure><img src="/files/ZbbNhPMBnH5fNqYl9s9L" alt=""><figcaption></figcaption></figure>

## Conclusion <a href="#conclusion" id="conclusion"></a>

You can find all the available methods and test them out with the interactive documentation. You can download a QLab session with the two examples here:

{% embed url="<https://drive.google.com/file/d/1pH_iWPXzsKGCayXYpO3xPgY7NzhcUO0V/view?usp=sharing>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.holoplot.com/holoplot-api/examples/adjusting-the-systems-gain.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
