cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

Problem using published business api endpoint

Problem using published business api endpoint

TimO1968
Explorer | Level 4

When trying to create a shared folder with the API, I get the following message:

Your API app is not allowed to call this function.

The endpoint: 

https://api.dropboxapi.com/2/team/team_folder/create

Full command:

curl -X POST https://api.dropboxapi.com/2/team/team_folder/create \
    --header "Authorization: Bearer <my access token>" \
    --header "Content-Type: application/json" \
    --data "{\"name\": \"TIMTEST\"}"
1 Accepted Solution

Accepted Solutions

Re: Problem using published business api endpoint

Greg-DB
Dropboxer

@TimO1968 This error message indicates that you are calling this endpoint using an API app with a permission that doesn't have access to this particular endpoint.

In this case, you are calling /2/team/team_folder/create, which requires the use of an access token for an app registered for the "team member file access" permission. If you call with an access token for an app with the "team member management" permission instead, for instance, you'll get this error message. You can find more information on the different Dropbox Business API permissions here.

If you need to use the /2/team/team_folder/create endpoint, you should instead register a Dropbox Business API app with the "team member file access" permission and get and use an access token for that.

View solution in original post

2 Replies 2

Re: Problem using published business api endpoint

Pikamander2
Super User

Are you able to perform any other actions with the API?

And just to check the obvious, did you replace the <my access token> with your actual access token?

Re: Problem using published business api endpoint

Greg-DB
Dropboxer

@TimO1968 This error message indicates that you are calling this endpoint using an API app with a permission that doesn't have access to this particular endpoint.

In this case, you are calling /2/team/team_folder/create, which requires the use of an access token for an app registered for the "team member file access" permission. If you call with an access token for an app with the "team member management" permission instead, for instance, you'll get this error message. You can find more information on the different Dropbox Business API permissions here.

If you need to use the /2/team/team_folder/create endpoint, you should instead register a Dropbox Business API app with the "team member file access" permission and get and use an access token for that.

View solution in original post

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Pikamander2 Super User
What do Dropbox user levels mean?
Need more support?