First let me start off by saying that I am not a coder. I just see patterns and typically figure out how to make things work.
I'm using Zapier to do a number of automations. One task that I'm needing automated is the moving of all files from one folder to another. Zapier does not have a clickable function to do this, so I have to use the "API Request in Dropbox" function. It took me a little while to get it sorted out. It appears to me that the API call is being submitting successfully to Dropbox. However, no files are being moved.
I'm getting the following response body:
{".tag": "async_job_id", "async_job_id": "dbjid:AABI_8Adka7HHdIhvnANDgxZMG9kXDqa6_M1KyZTm30Jbhz2aiVxD8VFgfzmP_mtp6rDex6Tnrl9oWhAaUVLdXmV"}
When I POST to https://api.dropboxapi.com/2/files/move_batch/check_v2 with the job id info the response body is:
{".tag": "complete", "entries": [{".tag": "failure", "failure": {".tag": "relocation_error", "relocation_error": {".tag": "to", "to": {".tag": "conflict", "conflict": {".tag": "folder"}}}}}]}
---------
To provide as much info as possible, here are the logs for the initial move_batch_v2 API post. I just copied and pasted from the "test results" window in zapier. I notice some of the label info is doubled when pasting below.:::
🔍 Full Response Data 🔎🔍_full_response_data_🔎
Request Querystringquerystring
Request Headers Content Typecontent-type
{ "allow_ownership_transfer": false, "autorename": false, "entries": [ { "from_path": "/Greater Than Consulting/Offers/SocialBusinessBot/Clients/RV Shepherd/Topic 1 Used", "to_path": "/Greater Than Consulting/Offers/SocialBusinessBot/Clients/RV Shepherd/Topic 1" } ] }
Request Data Allow Ownership Transferallow_ownership_transfer
Request Data Autorenameautorename
/Greater Than Consulting/Offers/SocialBusinessBot/Clients/RV Shepherd/Topic 1 Used
/Greater Than Consulting/Offers/SocialBusinessBot/Clients/RV Shepherd/Topic 1
Response Headers Cache Controlcache-control
Response Headers Connectionconnection
Response Headers Content Encodingcontent-encoding
Response Headers Content Typecontent-type
Response Headers Datedate
Fri, 05 Apr 2024 06:28:34 GMT
Response Headers Serverserver
Response Headers Transfer Encodingtransfer-encoding
Response Headers Varyvary
Response Headers X Content Type Optionsx-content-type-options
Response Headers X Dropbox Request IDx-dropbox-request-id
4cdb7db0c2314dd3a586d95167b5e410
Response Headers X Dropbox Response Originx-dropbox-response-origin
Response Headers X Frame Optionsx-frame-options
Response Headers X Server Response Timex-server-response-time
{".tag": "async_job_id", "async_job_id": "dbjid:AABI_8Adka7HHdIhvnANDgxZMG9kXDqa6_M1KyZTm30Jbhz2aiVxD8VFgfzmP_mtp6rDex6Tnrl9oWhAaUVLdXmV"}
Response Data Async Job Idasync_job_id
dbjid:AABI_8Adka7HHdIhvnANDgxZMG9kXDqa6_M1KyZTm30Jbhz2aiVxD8VFgfzmP_mtp6rDex6Tnrl9oWhAaUVLdXmV