<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need a little help getting started - want to write a simple text file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507564#M25076</link>
    <description>&lt;P&gt;Thanks for that, it's pretty close to what I'm looking for. However, I have one more question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Say I wanted to create a file in ~/compTest/test.txt, I would access the following path with the following payload?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;{
    "path": "/compTest/test.txt",
    "mode": {
        ".tag": "&lt;STRONG&gt;overwrite&lt;/STRONG&gt;", &lt;BR /&gt;        "update": "a1c10ce0dd78" &lt;BR /&gt;    }, &lt;BR /&gt;    "autorename": false, &lt;BR /&gt;    "mute": false, &lt;BR /&gt;    "strict_conflict": false &lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is there a way for me to specify the contents of the file? I would call this from a home automation system, so I don't have anywhere to store local files. The alternative would be to create a template in my dropbox and use the copy_v2 to copy this to the location I need it. It would be a workaround, but not very neat &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 17:03:39 GMT</pubDate>
    <dc:creator>tiwas</dc:creator>
    <dc:date>2021-03-24T17:03:39Z</dc:date>
    <item>
      <title>Need a little help getting started - want to write a simple text file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507454#M25072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Just found this out of necessity &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; I need to write a small text file (predefined name, predefined content, no need to append) using either a rest client or http request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could someone point me in the direction of information on how to do this without reading the whole API reference? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 10:23:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507454#M25072</guid>
      <dc:creator>tiwas</dc:creator>
      <dc:date>2021-03-24T10:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need a little help getting started - want to write a simple text file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507538#M25075</link>
      <description>&lt;P&gt;To upload a small file, you'd use the&amp;nbsp;/2/files/upload endpoint:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation" target="_blank"&gt;https://www.dropbox.com/developers/documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those have corresponding native methods for the HTTPS endpoints.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:50:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507538#M25075</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-24T14:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need a little help getting started - want to write a simple text file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507564#M25076</link>
      <description>&lt;P&gt;Thanks for that, it's pretty close to what I'm looking for. However, I have one more question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Say I wanted to create a file in ~/compTest/test.txt, I would access the following path with the following payload?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;{
    "path": "/compTest/test.txt",
    "mode": {
        ".tag": "&lt;STRONG&gt;overwrite&lt;/STRONG&gt;", &lt;BR /&gt;        "update": "a1c10ce0dd78" &lt;BR /&gt;    }, &lt;BR /&gt;    "autorename": false, &lt;BR /&gt;    "mute": false, &lt;BR /&gt;    "strict_conflict": false &lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is there a way for me to specify the contents of the file? I would call this from a home automation system, so I don't have anywhere to store local files. The alternative would be to create a template in my dropbox and use the copy_v2 to copy this to the location I need it. It would be a workaround, but not very neat &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 17:03:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507564#M25076</guid>
      <dc:creator>tiwas</dc:creator>
      <dc:date>2021-03-24T17:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need a little help getting started - want to write a simple text file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507573#M25077</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/66787691/create-file-with-text-with-dropbox-api-rest-or-http" target="_blank"&gt;https://stackoverflow.com/questions/66787691/create-file-with-text-with-dropbox-api-rest-or-http&lt;/A&gt;&amp;nbsp;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the&amp;nbsp;/2/files/upload endpoint is a &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_self"&gt;"content-upload" style&lt;/A&gt; endpoint, so you can supply the file data to upload in the HTTPS request body. You may need to refer to the documentation for whatever HTTPS client you're using for information on how to set the request body.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I notice in the code you posted that you have '".tag": "overwrite"', but then set an 'update' value, which isn't expected. You would only set an 'update' value if you're using&amp;nbsp;'".tag": "update"', there. You can use &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_upload" target="_self"&gt;the API v2 Explorer&lt;/A&gt; to help prototype calls like this.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 19:35:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-a-little-help-getting-started-want-to-write-a-simple-text/m-p/507573#M25077</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-24T19:35:55Z</dc:date>
    </item>
  </channel>
</rss>

