<?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: Rename folder - Getting async_job_id in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Rename-folder-Getting-async-job-id/m-p/716253#M31714</link>
    <description>&lt;P&gt;You can find information on /2/files/move_batch_v2, such as its possible return types, in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-move_batch" target="_blank"&gt;its documentation here&lt;/A&gt;. If you get a async_job_id back, you should use /2/files/move_batch/check_v2 to check the status of the job. You can find &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-move_batch-check:2" target="_self"&gt;the documentation for that here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 12:23:02 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-09-25T12:23:02Z</dc:date>
    <item>
      <title>Rename folder - Getting async_job_id</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Rename-folder-Getting-async-job-id/m-p/716135#M31710</link>
      <description>&lt;P&gt;I am renaming a folder via&amp;nbsp;&lt;A href="https://api.dropboxapi.com/2/files/move_batch_v2" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/files/move_batch_v2&lt;/A&gt;&amp;nbsp;(using that to avoid&lt;SPAN&gt;"lock contention"&lt;/SPAN&gt;). And I am getting this returned:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;{".tag": "async_job_id", "async_job_id": "dbjid:AADB5ZMuOs7nIAy6oJ2NYg0MkdhI6nlw_Kb5bfLyb7LxBS1x_e5JfQuktSrgq7kXjKxbPFwHIly3aWR2YWt0BXqt"}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is this? I am expecting to see the items in the returend strings. It is renaming it - so there is no error from what I can tell...&lt;BR /&gt;EDITED: Looks like it's "&lt;SPAN&gt;This response indicates that the processing is asynchronous.&amp;nbsp;" But how do I get the actual response back?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my relevant code (PHP)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;	$entries = array(
        array(
            "from_path" =&amp;gt; "/" . $user_path . "/" . $space . "/" . $string_old,
        	"to_path" =&amp;gt; "/" . $user_path . "/" . $space . "/" . $string_new
        )
    );

    $params = array(
		"entries" =&amp;gt; $entries,
        "autorename" =&amp;gt; true
    );

    $ch = curl_init();
    curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode( $params ) );
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
    curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, "POST" );
    curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers );
    curl_setopt( $ch, CURLOPT_URL, 'https://api.dropboxapi.com/2/files/move_batch_v2' );&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 08:58:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Rename-folder-Getting-async-job-id/m-p/716135#M31710</guid>
      <dc:creator>toki4004</dc:creator>
      <dc:date>2023-09-25T08:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rename folder - Getting async_job_id</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Rename-folder-Getting-async-job-id/m-p/716253#M31714</link>
      <description>&lt;P&gt;You can find information on /2/files/move_batch_v2, such as its possible return types, in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-move_batch" target="_blank"&gt;its documentation here&lt;/A&gt;. If you get a async_job_id back, you should use /2/files/move_batch/check_v2 to check the status of the job. You can find &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-move_batch-check:2" target="_self"&gt;the documentation for that here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 12:23:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Rename-folder-Getting-async-job-id/m-p/716253#M31714</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-09-25T12:23:02Z</dc:date>
    </item>
  </channel>
</rss>

