VSSL REST API
  • Introduction
  • GETTING STARTED
    • Introduction
    • START HERE!
    • Using a Raspberry PI
    • Installing the VSSL Agent
    • Discovery of the API
    • Sending requests
    • Reading the examples
  • ZONES
    • Get zones
    • Reboot a zone
  • ZONE CONTROL
    • Play Control
    • Volume
    • Mute
    • Set Party
    • Set Group
    • Priority
    • Set Analog Input Source
    • RampVolume
  • ANNOUNCEMENTS
    • Play an audio clip
  • SUPPORT
    • Feature request
    • Contact us
Powered by GitBook
On this page
  • Parameters
  • Response
  • Example Request
  • Example Response

Was this helpful?

  1. ZONE CONTROL

Mute

PATCH /setmute

Parameters

Parameter

Data Type

Value

serial

string, required

the serial number of a vssl device

number

integer, required

the zone number.

mute

integer, required

0-disabled, 1-muted

Note: stopping a stream will disconnect the client as will pausing an Airplay stream.

Note2: streams (Airplay, Chromecast, Spotify.Connect) have higher priority than analog inputs. Therefore, if both input types are playing to a zone then the higher priority will play. Likewise, if both types of input are playing to a zone and the stream is stopped then the zone will switch to playing the lower priority content.

Response

Status of the call

Example Request

Sample HTTP request

$ curl --request PATCH http://192.168.0.15:8000/api/setmute?'serial=00BD27EF657D&number=3&mute=0'
IP: 192.168.0.15
Host: 8000
Data: "PATCH api/setmute?serial=00BD27EF657D&number=3&mute=0 HTTP/1.1\r\n\r\n"
$ http PATCH 192.168.121.244:8000/api/setmute serial==00BD27EF7210 number==3 mute==0
const axios = require('axios');

axios.patch('http://192.168.0.15:8000/api/playcontrol', {
    params: {
      serial: '00BD27EF657D',
      number: 1,
      mute: 1
    }
  }).then((response)=>{
    console.log(response);
  }).catch((response)=>{
    console.log('Error making request');
  })

Example Response

{
  "status": "request sent"
}
PreviousVolumeNextSet Party

Last updated 6 years ago

Was this helpful?