---
title: "setRelativeVolume"
method: POST
path: "/players/{playerId}/playerVolume/relative"
tags: ["playerVolume"]
---

# setRelativeVolume

`POST /players/{playerId}/playerVolume/relative`

Use the setRelativeVolume command to increase or decrease volume and set the player's mute state.

 Returns an empty body with a success value of true if successful. The player generates a playerVolume event if the volume was changed.

## Request body

- object
  - `volumeDelta` integer, nullable — (Optional) Between -100 and 100 to indicate the amount to increase or decrease the volume for the player. If your app submits a number outside of this range, you will receive an ERROR_INVALID_PARAMETER error. The player adds this value to the current volume and keeps the result in the range of 0 to 100.
  - `muted` boolean, nullable — (Optional) True to mute the player or false to unmute the player. If not specified, the existing mute state is maintained.

## Response `200`

See the x-muse-error-codes extension for a list of muse errors that generate this response

- Ok — This object represents an empty (default) success. The platform returns an empty object ({}).

## Other responses

- `400` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `401` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `403` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `404` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `499` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `500` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `503` — See the x-muse-error-codes extension for a list of muse errors that generate this response

---

[API](https://skmtc.net/sonos/apis/authorization-api.md) · [All operations](https://skmtc.net/sonos/apis/authorization-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sonos/authorization-api/revisions/243132628620/schema)
