Issue related to Create Collaboration Whitelist API
I am checked Create Collaboration whitelist API using Postman but every time status code 403 (forbidden) response even I parse the perfect Token and body parameter
Following is parse the parameter list and response
Body Parameter
{
"domain": "oneclickreferral.com",
"direction": "both"
}
Response Result
{
"type": "error",
"status": 403,
"code": "forbidden",
"help_url": "http://developers.box.com/docs/#errors",
"message": "Forbidden",
"request_id": "d3qj6iga6zfzl3wb"
}
I attached screenshot for the same please check and replay what is the issue and which place I mistake.
I am checked Create Collaboration whitelist API using Postman but every time status code 403 (forbidden) response even I parse the perfect Token and body parameter
Following is parse the parameter list and response
Body Parameter
{
"domain": "oneclickreferral.com",
"direction": "both"
}
Response Result
{
"type": "error",
"status": 403,
"code": "forbidden",
"help_url": "http://developers.box.com/docs/#errors",
"message": "Forbidden",
"request_id": "d3qj6iga6zfzl3wb"
}
I attached screenshot for the same please check and replay what is the issue and which place I mistake.
http://prntscr.com/qeqgl6
http://prntscr.com/qeqh8b
-
Hi ,
Typically this is related to one of two things:
- Your Box application doesn't have the appropriate scopes set for making the call.
- The access token you're using doesn't have permission to make the call.
For #1
Go into your application on the developer console and try selecting all of the available scopes to see if that's the issue. Read / write files, manage groups, or manage users should be the appropriate one needed. Make sure to reauthorize your application afterwards if you're using a JWT app to bring in the changes.
For #2
Ensure that the developer token you're using has permission to make the request for the user. For instance, if you're using a developer token you won't be able to access files / folders from another account, unless you have permission to access those files / folders.
- Jon
Please sign in to leave a comment.
Comments
1 comment