# Sending HTTP PUT to smartapp

**URL:** <https://community.smartthings.com/t/sending-http-put-to-smartapp/55482>\
**Category:** General Discussion\
**Tags:** smartapp, external, developers\
**Created:** [August 23, 2016, 1:56am UTC](https://community.smartthings.com/t/sending-http-put-to-smartapp/55482 "2016-08-23T01:56:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_Forney](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@Leo\_Forney](https://community.smartthings.com/u/Leo_Forney)\
**Post date:** [August 23, 2016, 1:56am UTC](https://community.smartthings.com/t/sending-http-put-to-smartapp/55482/1 "2016-08-23T01:56:59Z")

</div>

Hi, I have a lot of knowledge on java and how to actually send the HTTP PUT from the java language. I also know how to convert a cURL request into the java request. I’ve searched pretty much everywhere and the lack of documentation is really really bad for this platform. How do you find the url to send the PUT request to and where can I find the oauth token? In the PUT reuquest do you put any data with it?

---

<div class="post-metadata">

**Author:** ![ady624](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ady624/32/32610_2.png) [@ady624](https://community.smartthings.com/u/ady624)\
**Post date:** [August 23, 2016, 2:48am UTC](https://community.smartthings.com/t/sending-http-put-to-smartapp/55482/2 "2016-08-23T02:48:41Z")

</div>

Search the docs for createAccessToken - you will find an example…

---

<div class="post-metadata">

**Author:** ![desertblade](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/desertblade/32/20506_2.png) [@desertblade](https://community.smartthings.com/u/desertblade)\
**Post date:** [August 23, 2016, 3:28am UTC](https://community.smartthings.com/t/sending-http-put-to-smartapp/55482/3 "2016-08-23T03:28:55Z")

</div>

Documentation is pretty good. You have to authenticate, manage the token and use that to discover the endpoint.

[http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/tutorial-part2.html](http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/tutorial-part2.html)

If you just want an endpoint to call with an API key, take a look at my Beddi\_Connect app. I create a webpage inside thee smartApp that lists the endpoints. I took this idea from @MichaelS AskAlexa. I did not have the need to create a full fledged app to manage the token.

> **[desertblade/Beddi\_Connect](https://github.com/desertblade/Beddi_Connect)**
>
> Beddi\_Connect - Beddi Alarm clock HTTP requests to Smartthings
