cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you new to Dropbox? Our Newcomers group is the perfect place to learn the basics, find out more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API v2

API v2

Marcos_Soares
Explorer | Level 3

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_A...: data  

 

What do i have to do to fix it?  

Thanks. Marcos.

5 Replies 5

Rich
Super User II

You need to update your app to use the newer API v2. I'm moving your post to the API forum.

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_Soares
Explorer | 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

Marcos_Soares
Explorer | Level 3
Ok, i finally get my app working with the API v2. Thanks Greg.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Marcos_Soares Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Rich Super User II
What do Dropbox user levels mean?