Skip to main content
Question

Dropbox error: Getting error 400 and no data submitted and no Body


Hi, I’m trying to create a file request for an Uploads folder lwith a user’s email as the folder name such as Uploads/joe@joe.com

I have Zaps set up as

1. Gravity Forms Submission

2. Create Dropbox Folder -- Uploads/Email with email from Form in #1​​​​​​

3 Create File Request (Custom Action) Dropbox - i just want to create a link for user to submit images houses in the Folder generated in #2. 

When i test #3 i’m getting a 400 error with no data submitted and no body...I can’t figure out the issue:

 

here’s JSON from test:

{
    "result": {
        "request": {
            "method": "POST",
            "url": "https://api.dropboxapi.com/2/file_requests/create",
            "querystring": null,
            "headers": {
                "Content-Type": "application/json"
            },
            "body": "{\"title\":\"Submit Your Images\",\"destination\":\"Uploads/joe@joe.com\",\"open\":\"{{open}}\",\"deadline\":{\"deadline\":\"{{deadline}}\",\"allow_late_uploads\":\"{{allow_late_uploads}}\"}}",
            "data": {
                "title": "Submit Your Images",
                "destination": "Uploads/joe@joe.com",
                "open": "{{open}}",
                "deadline": {
                    "deadline": "{{deadline}}",
                    "allow_late_uploads": "{{allow_late_uploads}}"
                }
            }
        },
        "response": {
            "status": 400,
            "headers": {},
            "body": "null",
            "data": null
        }
    }
}

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @ChrisAVC 

Dropbox API endpoint docs to reference:

https://www.dropbox.com/developers/documentation/http/documentation#file_requests-create

 

Try adding a / before Uploads so it becomes: /Uploads/...

 

destination

String(pattern="/(.|[\r\n])*")

The path of the folder in the Dropbox where uploaded files will be sent.

For apps with the app folder permission, this will be relative to the app folder.


Troy Tessalone
Forum|alt.badge.img+14

@ChrisAVC 

I got it to work using the Dropbox API Request

 

 


  • Author
  • Beginner
  • 2 replies
  • May 23, 2024

Thanks Troy, i got it to work with this API call, for some reason that other Dropbox request action doesn’t want to work correctly.  Much appreciated.


Troy Tessalone
Forum|alt.badge.img+14

@ChrisAVC 

  1. Edit the Zap
  2. Go to the Zap step
  3. Go to the tab: App & Event
  4. Search/Select the new event from the dropdown list
  5. Configure the step
  6. Test the step
  7. Publish the Zap

 


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2336 replies
  • June 28, 2024

Hi @ChrisAVC ,
 
We just wanted to see how everything is going with your Zap. Did Troy's recommendation get the job done? Feel free to reach out if you need further assistance with your Zap. We're glad to address any concerns and assist you.
 
We're looking forward to your response.