Developer Token POST requests returning 403
AnsweredTrying to make a POST request to upload a file to the following endpoint using ajax:
url: 'https://upload.box.com/api/2.0/files/content',
headers: {Authorization: 'Bearer DeveloperTokenHere'},
I keep getting a 403 error when trying..I have checked permissions in my admin console and they look alright. Any GET request I make is returning a 2xx code but POST are giving me this 403 error.
-
Can you please provide:
- Client ID of your application (found in the configuration tab of the dev console)
- Full body response of the 403
- Date/time/timezone you receive the error
I'd like to take a look in our backend logs for more info. Alternatively, you can open a ticket at support.box.com if you aren't comfortable providing the above here.
Best,
Kourtney
-
It looks like you're trying to upload content to a folder that's owned by the "admin" of your developer account. However, you have selected application only as the application access level. This only enables you to interact with the applications service account, app users, and their content. Can you please try changing the application access level to enterprise and making the call again? Once you change the app access level you will need to reauthorize the application and obtain a new token.
Best,
Kourtney
Please sign in to leave a comment.
Comments
4 comments