Help with Put requests


(El N1n0) #1

I’m trying to send a put request with SmartThings on postman and cannot find a way to do so. The get request works and returns devices on the hub. How do I successfully send a put request with SmartThings so that I can control lights with http.

Thank you!


(Joshua Lyon (SharpTools.io Dashboard)) #2

What errors are you seeing and what code are you using?

Make sure you’ve mapped your endpoints with the appropriate HTTP methods in your SmartApp and make sure PostMan is set to use the correct verb as well.

http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/tutorial-part1.html#specify-endpoints