<?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: Write a delta to the latest revision? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Write-a-delta-to-the-latest-revision/m-p/125271#M3673</link>
    <description>&lt;P&gt;There's nothing like &lt;CODE&gt;rev=latest&lt;/CODE&gt;, so you should indeed loop in this case. That's how, for example, the Python SDK works.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Apr 2015 22:22:15 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-04-19T22:22:15Z</dc:date>
    <item>
      <title>Write a delta to the latest revision?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Write-a-delta-to-the-latest-revision/m-p/125270#M3672</link>
      <description>&lt;P&gt;I'm creating a simple online form where I want to send the submitted data to my Dropbox Datastore using PHP.&lt;/P&gt;

&lt;P&gt;Now the problem is, this might cause concurrency issues which I'm not sure how to handle. Consider the following scenario where two users (A and B) submit the form at the same time:&lt;/P&gt;

&lt;P&gt;A calls &lt;CODE&gt;get_datastore&lt;/CODE&gt; and gets rev=10&lt;BR /&gt;
B calls &lt;CODE&gt;get_datastore&lt;/CODE&gt; and gets rev=10&lt;BR /&gt;
B calls &lt;CODE&gt;put_delta&lt;/CODE&gt; with the form data and rev=10, incrementing current revision&lt;BR /&gt;
A calls &lt;CODE&gt;put_delta&lt;/CODE&gt; with the form data and rev=10, but this fails since current revision is now 11&lt;/P&gt;

&lt;P&gt;I could simply make a loop and keep trying until &lt;CODE&gt;put_delta&lt;/CODE&gt; succeeds, but this seems like bad practice since all I want is to append a record and don't really care about the revision, as far as I can see. Is there any way to make a &lt;CODE&gt;put_delta&lt;/CODE&gt; call (or equivalent) and somehow specify &lt;CODE&gt;rev=latest&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:43:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Write-a-delta-to-the-latest-revision/m-p/125270#M3672</guid>
      <dc:creator>Filip S.7</dc:creator>
      <dc:date>2019-05-29T09:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Write a delta to the latest revision?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Write-a-delta-to-the-latest-revision/m-p/125271#M3673</link>
      <description>&lt;P&gt;There's nothing like &lt;CODE&gt;rev=latest&lt;/CODE&gt;, so you should indeed loop in this case. That's how, for example, the Python SDK works.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2015 22:22:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Write-a-delta-to-the-latest-revision/m-p/125271#M3673</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-04-19T22:22:15Z</dc:date>
    </item>
  </channel>
</rss>

