You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

SC_dev4's avatar
SC_dev4
Explorer | Level 4
3 months ago

incorrect 'restricted_content' error from properties endpoints

I'm attempting to call properties/add, remove and update but I'm getting a content_restricted response. I checked the permission of my app thoroughly, and I do havee metadata.write activateeeed. I even weent ahead and generated a new refresh token to make sure I'm generating access tokens with correct permissions enabled. And nothing. When I geenerateed acceeess tokens through the api tester it works. But when I use access tokens generated with my refresh token I get the error. I see others have pointed out very similar problems and support told them there was an actual bug, so I think there's a good chance that I have found a bug here.

  • SC_dev4 Здравко is correct; this doesn't indicate a scopes issue. This indicates that your app doesn't have permission to use that template. Note that user file property templates are app-user pair specific. You can't use an access token for one app to access a template that was created with a different app.

     

    You mentioned using both your own app as well as the API Explorer app, which would cause this issue. If you're trying to use a template with your own app, make sure you also created it using your own app.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    SC_dev4 wrote:

    ... I checked the permission of my app thoroughly, and I do havee metadata.write activateeeed. ...


    You don't have any issue with the required scope. If the scope was not set, your error would be 'missing_scope' and will inform you about the scope you need to add to be able use particular endpoint. Since that's not the case, don't delve in that direction. The error 'restricted_content' means that you don't have enough access right to the resource you want to modify.

    Hope this gives direction.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    SC_dev4 Здравко is correct; this doesn't indicate a scopes issue. This indicates that your app doesn't have permission to use that template. Note that user file property templates are app-user pair specific. You can't use an access token for one app to access a template that was created with a different app.

     

    You mentioned using both your own app as well as the API Explorer app, which would cause this issue. If you're trying to use a template with your own app, make sure you also created it using your own app.

    • SC_dev4's avatar
      SC_dev4
      Explorer | Level 4

      Thank you both. Yes, this was in fact the issue. I had originally created my template using the API Explorer. I now created a new template using an access token generated with my refresh token and I can call the properties endpoints successfully.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 11 hours ago
325 Following

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!