Greg-DB Dropbox Community Moderator

Comments

  • Based on the information you've shared, I understand you are getting a not_allowed error from the /2/files/get_temporary_link API endpoint. That error from that endpoint means: <STRONG>not_allowed</STRONG>Void The user is not allowed to request a temporary link to the specified file. For example, this can occur if the file…
  • An 'expired_access_token' indicates that the API call failed because it was made with a short-lived access token that has expired. Please note that Dropbox issues short-lived access tokens which automatically expire after a few hours. Apps can get long-term access by requesting "offline" access though, in which case the…
  • Yes, that's correct. Using the 'pathRoot' property sets the "Dropbox-API-Path-Root" header; if you use the "root" mode like that and set it to the account's root_namespace_id that would set the call to operate in the root for the account (such as the team space, if any).
  • @"JimmyMcnulty" To confirm, Здравко is correct; you can and should use the same user scopes on a single app with the same files endpoints to work with files in both business and non-business accounts. You don't need team scopes to work with files in accounts that happen to be on business teams. For example, to upload…
  • @"Rede Inspire" From the configuration in the UI in your screenshot, it looks like your client may be trying to parse the response as JSON, but the response isn't guaranteed to be JSON, so as Здравко said, please check the raw response. If the raw response is empty though, please check and share the headers as they may…
  • @"pp111" Thanks for the samples! We'll look into it and follow up here once we have any updates on this for you.
  • @"GaryH_BAR01" Dropbox does not offer an API for Dropbox Transfer, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. As Здравко said though, the Dropbox API does offer the ability to create folders, upload files, and create shared links with specific access…
  • @"cankayaalperen" Could you elaborate on what specifically you're stuck on? For example though, using the Python SDK, uploading a file like this would by default go to the member folder: res = dbx.files_upload(f=data, path="/some folder/file.ext") but if you instead wanted to upload into a team folder inside the team space…
  • @"Jon B.1" 1. This is more of a local filesystem interaction, so I can't offer much guidance here unfortunately, as I can only offer help with the Dropbox API itself. If you want to open a ticket though and reference this thread, we can direct your ticket to the relevant department to see if they can offer some guidance on…
  • As Здравко said, this error message does not come from Dropbox itself. This sounds like something the Moodle software should configure, so I suggest reaching out to the makers of Moodle for help.
  • An app's development/production status does not depend on the app owner's trial status. The app will remain in production status and continue working if/when the app owner's trial expires. Note though that the app owner's account does need to be active for the app to be operational. If the app owner's account is disabled,…
  • Please share the actual API call request and response so we can take a look at the particular parameters you're using and the exact error you're getting. Be sure to redact your access token though. From the description however, it sounds similar to this thread, so I suggest taking a look at that.
  • @"K2R400" Здравко is correct; you can revoke an existing access token. One way to do so is to call /2/auth/token/revoke using the access token. (You can use the API v2 Explorer to make the call if you want.) Note that this can't be undone. And as they said, Dropbox now issues short-lived access tokens, not long-lived…
  • The SDK methods should always either return or throw some error, but if it's blocking for a long time, it may be helpful to inspect the requests/responses directly as Здравко said. We're also happy to take a look on our side if you'd like. Feel free to open an API ticket here at your convenience. If you do so, please share…
  • @"JohnAdam_CUNY" Здравко is correct. For more information on using team_member_space_limits_set_custom_quota, please refer to the documentation. So, for example, setting a custom quota for a single member by specifying an email address would look like: users_and_quotas =…
  • Yes, if you're using the official Dropbox Android SDK, you should use the functionality provided by the SDK as shown in the example that Здравко linked to. If you're not using the official Dropbox Android SDK, you should refer to your platform's documentation.
  • No, you don't need a paid plan to apply for or receive production status for an API app.
  • It sounds like your team may have migrated to the updated team space configuration. I see you were accessing a specific namespace ID, though that may be out of date. There a number of different ways of using this functionality depending on what you want to do, but if you want to operate in your team space, I suggest using…
  • @"TalesCreator" Are you perhaps on a team that recently migrated to the team space configuration? Please note that by default, API calls to the Dropbox API operate in the "member folder" of the connected account, not the "team space". That means that by default, the contents of the team space will not be found, and uploads…
  • @"cankayaalperen" An 'expired_access_token' error indicates that the call failed because it was made with a short-lived access token that has expired. In addition to the post that Здравко linked to, you can find more information on how this works in the following resources: * https://developers.dropbox.com/oauth-guide *…
  • In addition to what Здравко said, note that by default, API calls to the Dropbox API operate in the "member folder" of the connected account, not the "team space". That means that by default, the contents of the team space will not be found. You can configure API calls to operate in the "team space" instead though, in…
    in api Comment by Greg-DB August 2024
  • Per the official documentation, the Dropbox OAuth app authorization flow must be processed in the user's system web browser, not a web view. Exactly how you implement that will depend on your platform and programming language, so you'll need to refer to your platform's documentation for more information on how exactly to…
  • Yes, connecting any app with the app folder access type would create the "Apps" folder (or translated version of it), if it doesn't already exist in the account, whether or not the user's account had one before.
  • Unfortunately I don't believe there's an alternative in this scenario, because the /2/files/copy_v2 endpoint only supports the Dropbox-API-Select-Admin header in the "Team Admin" mode, meaning it has access to "team folders and team spaces but not the team members' home namespaces". So, when you administratively access…
  • I see you're getting a System.NullReferenceException. As Здравко said, that's not an error from the Dropbox API itself. You can find Microsoft's documentation for that exception here though.
  • The .NET SDK method calls should eventually either return a result or raise an exception (e.g., if the connection takes too long and times out), but depending on how long the calls take, it can take some time to do so and would hang in the meantime. Like Здравко said, if there are multiple changes at the same time in the…
  • The "Apps" (which is a localized name) folder is a folder for containing "app folders" and is automatically created in a user's Dropbox folder by Dropbox the first time that user connects an app with the "app folder" access type. There are a few reasons it may not exist at "/Apps" in any given account at any given time: *…
  • The Dropbox API /2/files/search_v2 endpoint provides an options.path parameter which can be used to request that Dropbox restrict the search to a particular path, though there is a delay for recent changes. While Dropbox will restrict the search to a path if supplied, if a file (or parent folder) was recently moved out of…
  • To turn off the webhook notifications for a connected user, the user would need to disconnect the app from their account, which they can do via https://www.dropbox.com/account/connected_apps so you may want to ask them to do so. This is a manual process of course, so that's not ideal, and I've sent this along as a feature…
  • @"newBox" As Здравко noted, you should not attempt to open the temporary upload link directly in a browser; attempting to do so will return a 404 to the GET request. As for the path, if your app has the "app folder" access type, you should not include the path to the app folder itself in the 'path' value. Dropbox will…