Set Cider Playback Volume
curl --request POST \
--url http://localhost:1234/api/services/cider/playback/volume \
--header 'Content-Type: application/json' \
--header 'quack: <quack>' \
--data '{
"volume": 123
}'const options = {
method: 'POST',
headers: {quack: '<quack>', 'Content-Type': 'application/json'},
body: JSON.stringify({volume: 123})
};
fetch('http://localhost:1234/api/services/cider/playback/volume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'http://localhost:1234/api/services/cider/playback/volume';
const options = {
method: 'POST',
headers: {quack: '<quack>', 'Content-Type': 'application/json'},
body: JSON.stringify({volume: 123})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "http://localhost:1234/api/services/cider/playback/volume"
payload = { "volume": 123 }
headers = {
"quack": "<quack>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:1234/api/services/cider/playback/volume"
payload := strings.NewReader("{\n \"volume\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("quack", "<quack>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"volume\": 123\n}")
val request = Request.Builder()
.url("http://localhost:1234/api/services/cider/playback/volume")
.post(body)
.addHeader("quack", "<quack>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.post("http://localhost:1234/api/services/cider/playback/volume")
.header("quack", "<quack>")
.header("Content-Type", "application/json")
.body("{\n \"volume\": 123\n}")
.asString();Endpoints
Set Cider Playback Volume
Set the volume of Cider’s playback
POST
/
api
/
services
/
cider
/
playback
/
volume
Set Cider Playback Volume
curl --request POST \
--url http://localhost:1234/api/services/cider/playback/volume \
--header 'Content-Type: application/json' \
--header 'quack: <quack>' \
--data '{
"volume": 123
}'const options = {
method: 'POST',
headers: {quack: '<quack>', 'Content-Type': 'application/json'},
body: JSON.stringify({volume: 123})
};
fetch('http://localhost:1234/api/services/cider/playback/volume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'http://localhost:1234/api/services/cider/playback/volume';
const options = {
method: 'POST',
headers: {quack: '<quack>', 'Content-Type': 'application/json'},
body: JSON.stringify({volume: 123})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "http://localhost:1234/api/services/cider/playback/volume"
payload = { "volume": 123 }
headers = {
"quack": "<quack>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:1234/api/services/cider/playback/volume"
payload := strings.NewReader("{\n \"volume\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("quack", "<quack>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"volume\": 123\n}")
val request = Request.Builder()
.url("http://localhost:1234/api/services/cider/playback/volume")
.post(body)
.addHeader("quack", "<quack>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.post("http://localhost:1234/api/services/cider/playback/volume")
.header("quack", "<quack>")
.header("Content-Type", "application/json")
.body("{\n \"volume\": 123\n}")
.asString();Request Headers
string
required
This header must be set to “quack”, otherwise requests will fail
Request Body
number
required
min 0
max 1
The new volume, from 0 to 1
JSON Response
- Success
- Error
Object
required
null
required
Example Response
{
data: {
volume: 0.05,
old_volume: 0.2
},
error: null
}
⌘I

