# 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="https://1870956965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEWZvA6Ecdn48SRkbJ1C8%2Fuploads%2FGEQ1z2kcgWLMedUSk6mG%2Fimage.png?alt=media&#x26;token=15e6cf70-5033-44d2-b0f5-49e96509b315" 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>" %}
