We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
ChrisGrahamMast
9 years agoHelpful | Level 6
File Requests
We'd like to create a file request that we use for multiple projects from multiple clients. Each time someone uploads files, we'd like Dropbox to create a folder that's titled with the customers emai...
Greg-DB
Dropbox Community Moderator
9 years agoUnfortunately, the Dropbox API doesn't currently offer a way to programmatically create file requests, but I'll pass this along as a feature request.
- Greg-DB9 years ago
Dropbox Community Moderator
The Dropbox API now offers the ability to get, list, create, and update file requests:
https://www.dropbox.com/developers/documentation/http/documentation#file_requests
If you're using an official SDK, there will also be corresponding methods for these endpoints.- ChrisGrahamMast9 years agoHelpful | Level 6
THAT IS AMAZING!!!! Woo. I'm super excited about this.
So question with this- with our scripts, we'd need to hit the API with a single URL with a query string instead of headers. (We're using AppleScript, and you can't add a header stuff o the curl script.)
Is there a way to take this:
curl -X POST https://api.dropboxapi.com/2/file_requests/create \ --header "Authorization: Bearer " \ --header "Content-Type: application/json" \ --data "{\"title\": \"Homework submission\",\"destination\": \"/File Requests/Homework\",\"deadline\": {\"deadline\": \"2020-10-12T17:00:00Z\",\"allow_late_uploads\": \"seven_days\"},\"open\": true}"and make it look something like this:
curl -X POST https://api.dropboxapi.com/2/file_requests/create/?authirization=abcdefg&Content-Type=application/json&data=audio&destination=/uploader/Customer_email@website.com&deadline=ten_days&open=true
- Greg-DB9 years ago
Dropbox Community Moderator
ChrisGrahamMast Apologies, it appeared you had duplicate replies, and I tried to remove one, but it seems I somehow managed to remove them both.
Anyway, to answer your question:
"""
THAT IS AMAZING!!!! Woo. I'm super excited about this.
So question with this- with our scripts, we'd need to hit the API with a single URL with a query string instead of headers. (We're using AppleScript, and you can't add a header stuff o the curl script.)
Is there a way to take this:
curl -X POST https://api.dropboxapi.com/2/file_requests/create \ --header "Authorization: Bearer " \ --header "Content-Type: application/json" \ --data "{\"title\": \"Homework submission\",\"destination\": \"/File Requests/Homework\",\"deadline\": {\"deadline\": \"2020-10-12T17:00:00Z\",\"allow_late_uploads\": \"seven_days\"},\"open\": true}"and make it look something like this:
curl -X POST https://api.dropboxapi.com/2/file_requests/create/?authirization=abcdefg&Content-Type=application/json&data=audio&destination=/uploader/Customer_email@website.com&deadline=ten_days&open=true
"""
No, unfortunately that's not possible. These are RPC style endpoints, which only accept headers and parameters in the request body. I'll pass this along as a feature request, but I can't make any promises. Apologies I don't have better news!
- ChrisGrahamMast9 years agoHelpful | Level 6
Right on! No worries! I'm trying to set this up through Zapier's Webhooks "Post" feature, but I can't seem to get it to work there. I've been able to get it working through Terminal on OSX though, but I need to get it to opperate on a server, so that when people fill out a Gravity Form with their email address, that it creates the new file request folder that's called their email address, and then forwards them to that folder to upload files.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!