Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
Marcos_Soares
8 years agoExplorer | Level 3
API v2
My app send me a "v1_retired" message when i try to upload a json file. The command is:
$http({method: 'PUT', url: 'https://api-content.dropbox.com/1/files_put/dropbox/'+G_NomeUsuario+'/avisos.json?access_token='+G_AccessToken,data: data
What do i have to do to fix it?
Thanks. Marcos.
5 Replies
Sort By
- Greg-DB
Dropbox Staff
Marcos_Soares Rich is correct, your code uses API v1, which is retired, so the call will fail. You should migrate to API v2 instead. For example, the equivalent of /1/files_put is /2/files/upload.
By the way, if you need more time to migrate your app to API v2, we can offer an extension for access to API v1. To request that, please open an API ticket with the relevant app key(s).
- Marcos_SoaresExplorer | Level 3
Do I have only to change the path? What else do i have to do? There is a step by step way to do it?
Thanks.
Marcos.
- Greg-DB
Dropbox Staff
API v1 and API v2 offer different interfaces, so you will need to update your code. There's a migration guide here:
https://www.dropbox.com/developers/reference/migration-guide
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,990 PostsLatest Activity: 22 minutes ago
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 or Facebook.
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!