<?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: Remove member and transfer files (409) Conflict in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404554#M22036</link>
    <description>&lt;P&gt;Please print out the HTTPS response body for the failing API call. It should contain a more specific error indicating what the issue is.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 20:30:22 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-03-26T20:30:22Z</dc:date>
    <item>
      <title>Remove member and transfer files (409) Conflict</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404552#M22035</link>
      <description>&lt;P&gt;I'm trying to automate a leaver process and want to disable an active user and transfer their files to another active user. Using endpoint &lt;STRONG&gt;/members/remove&lt;/STRONG&gt; I can successfully disable a user if this is all I'm requesting, but when I add to the request transfer of files as well (by using&lt;STRONG&gt; transfer_dest_id&lt;/STRONG&gt;) API call fails with 'error: (409) Conflict' and I cannot find what is coflicting.&lt;BR /&gt;BTW I'm using API key with Team member management access and team_member_id as UserSelectorArg&lt;/P&gt;
&lt;P&gt;Thanks in advance for any clues&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 08:03:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404552#M22035</guid>
      <dc:creator>DanR238</dc:creator>
      <dc:date>2020-03-27T08:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove member and transfer files (409) Conflict</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404554#M22036</link>
      <description>&lt;P&gt;Please print out the HTTPS response body for the failing API call. It should contain a more specific error indicating what the issue is.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 20:30:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404554#M22036</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-03-26T20:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Remove member and transfer files (409) Conflict</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404565#M22037</link>
      <description>&lt;P&gt;It doesn't look like it gets that far. This is an exception that happens at the point of invoking POST method and server returns: &lt;EM&gt;The remote server returned an error: (409) Conflict&lt;/EM&gt;. The exception itself has Response property and it at it provides only the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IsMutuallyAuthenticated : False&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cookies : {}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Headers : {Transfer-Encoding, Connection, Content-Security-Policy, X-Dropbox-Request-Id...}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SupportsHeaders : True&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ContentLength : -1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ContentEncoding :&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ContentType : application/json&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CharacterSet : &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Server : nginx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LastModified : 26/03/2020 20:58:11&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;StatusCode : Conflict&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;StatusDescription : Conflict&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ProtocolVersion : 1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ResponseUri : &lt;A href="https://api.dropboxapi.com/2/team/members/remove" target="_blank"&gt;https://api.dropboxapi.com/2/team/members/remove&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Method : POST&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IsFromCache : False&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This exception only happens if I have the transfer_dest_id in request body. If I remove it, the same request works OK, but without file transfer of course.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 21:10:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404565#M22037</guid>
      <dc:creator>DanR238</dc:creator>
      <dc:date>2020-03-26T21:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove member and transfer files (409) Conflict</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404675#M22039</link>
      <description>&lt;P&gt;It doesn't look like it gets that far. The error is an exception that happens at the point of invoking the POST method and server returns: &lt;EM&gt;The remote server returned an error: (409) Conflict&lt;/EM&gt;. The exception itself has Response property but it only provides the following:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IsMutuallyAuthenticated : False&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cookies : {}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Headers : {Transfer-Encoding, Connection, Content-Security-Policy, X-Dropbox-Request-Id...}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SupportsHeaders : True&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ContentLength : -1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ContentEncoding :&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ContentType : application/json&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CharacterSet : &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Server : nginx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LastModified : 26/03/2020 20:58:11&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;StatusCode : Conflict&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;StatusDescription : Conflict&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ProtocolVersion : 1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ResponseUri : &lt;A href="https://api.dropboxapi.com/2/team/members/remove" target="_blank"&gt;https://api.dropboxapi.com/2/team/members/remove&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Method : POST&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IsFromCache : False&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This exception only happens if I have the transfer_dest_id in request body. Here is what I'm doing to execute the API call:&lt;BR /&gt;I'm using Powershell Invoke-RestMethod cmdlet as below. The headers only include Authorization&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Invoke-RestMethod -Uri "&lt;A href="https://api.dropboxapi.com/2/team/members/remove" target="_blank"&gt;https://api.dropboxapi.com/2/team/members/remove&lt;/A&gt;" -Method 'POST' -ContentType "application/json" -Headers $_headers -Body &amp;lt;one of the two examples below&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples of request bodies for endpoint: /members/remove&lt;/P&gt;&lt;P&gt;API call fails with this body:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"user": {".tag": "team_member_id","team_member_id": "&amp;lt;team_member_id&amp;gt;"},"wipe_data": false,"transfer_dest_id": {".tag": "team_member_id","team_member_id": "&amp;lt;team_member_id&amp;gt;"},"keep_account": false,"retain_team_shares": false}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;API call successful - user is disabled:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"user": {".tag": "team_member_id","team_member_id": "&amp;lt;team_member_id&amp;gt;"},"wipe_data": false,"keep_account": false,"retain_team_shares": false}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly, if I just disable a user via /members/remove and then try to use /&lt;STRONG&gt;members/move_former_member_files&lt;/STRONG&gt; to transfer files I'm also receiving exactly the same (409) Conflict response. I guess I must be doing something incorrectly.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 10:53:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404675#M22039</guid>
      <dc:creator>DanR238</dc:creator>
      <dc:date>2020-03-27T10:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remove member and transfer files (409) Conflict</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404733#M22041</link>
      <description>&lt;P&gt;If you're getting a status code, such as a 409, that means that you are&amp;nbsp;receiving an HTTPS response. In the case of a 409 from the&amp;nbsp;Dropbox API, there should always be some response body, but it looks like your HTTPS client isn't printing it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How have you been trying to access it exactly? It looks like &lt;A href="https://stackoverflow.com/a/23815539/1305693" target="_self"&gt;this StackOverflow answer&lt;/A&gt; shows how you should be able to.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:23:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404733#M22041</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-03-27T15:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove member and transfer files (409) Conflict</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404809#M22043</link>
      <description>&lt;P&gt;This is the clue I was looking for. Thank you very much! The Stack Overflow article allowed me to see the response, as you mentioned, although it wasn't the approved solution that helped me. In the end the actual problem, that generated the 409 Conflict exception, was related to the fact that when doing file transfer the request has to include admin id as well (error_summary: unspecified_transfer_admin_id). An example request body looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"{"user": {".tag": "team_member_id","team_member_id": "&amp;lt;team_member_id&amp;gt;"},"wipe_data": true,"transfer_dest_id": {".tag": "team_member_id","team_member_id": "&amp;lt;team_member_id&amp;gt;"},"transfer_admin_id": {".tag": "team_member_id","team_member_id": "&amp;lt;team_member_id&amp;gt;"},"keep_account": false,"retain_team_shares": false}"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bit of a schoolboy error - need to read documentation more carefully.&lt;/P&gt;&lt;P&gt;In any case the problem is solved so thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 21:15:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Remove-member-and-transfer-files-409-Conflict/m-p/404809#M22043</guid>
      <dc:creator>DanR238</dc:creator>
      <dc:date>2020-03-27T21:15:23Z</dc:date>
    </item>
  </channel>
</rss>

