POST Volume Command

POST Volume Command

edited 04/10/2019 - 16:40 in SoundTouch API
ECoutoECouto Posts: 2Member
I have a Sountouch SA 5 and I want to be able to control several parameters of the amplifier using the Soundtouch API.
I am using Postman to test.
The GET volume is working fine, but POST volume does not work at all.

In Postman I am typing:

http://192.168.2.110:8090/volume <volume>30</volume>

and then Send

POST /volume <volume>30</volume> HTTP/1.1
Host: 192.168.2.110:8090
cache-control: no-cache
Postman-Token: 67b375ac-b1b2-4655-87e6-a8e52d2238ef

I always get the following error message:

<html>
    <head>
        <title>Object Not Found</title>
    </head>
    <body>
        <h1>Object Not Found</h1>
The requested URL '/volume%20%3Cvolume%3E30%3C/volume%3E' was not found on the RomPager Advanced server.
        <p>


        </body>
    </html>


Any hint about what is wrong?

Thanks.

EC

Comments

  • Zach@Bose[email protected] Posts: 156Admin
    Hi @ECouto

    It looks like you're putting the payload ("<volume>30</volume>") in line with the URL in Postman. However, the payload needs to go in the Body, using "raw" encoding. I've attached a screenshot demonstrating this that hopefully helps!
  • ECoutoECouto Posts: 2Member
    Hi,

    Solved. Thanks a lot.

    EC
Sign In or Register to comment.