Cant access the existing folder through box sdk - java
Hi,
I am new to this box world. I have just set up the box sdk for java in my local and have registered my application with the box.
I am trying to add a particular user as collaborator to the folder in box
This is working fine if the folder is created through box-sdk but unfortunately i am not able to add collaborator to the folder if it is created in box site.
Kindly guide me to access the folder which is created in box through our box sdk.
Thanks in advance
-
I have a couple questions that will help diagnose the problem you're seeing. First, what sort of error are you getting when you try to add the collaborator to a folder that you didn't create through the SDK? Second, how are you authenticating with Box — the Developer Token from the Box Developer Console, app auth using a JWT, or something else?
-
Hi MWILLER,
Thanks for the response.
Please find below the answers
1) I am facing the below error
Exception in thread "main" com.box.sdk.BoxAPIException: The API returned an error code: 404
{"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reason":"invalid_parameter","name":"item","message":"Invalid value 'd_4***phone number removed for privacy***'. 'item' with value 'd_4***phone number removed for privacy***' not found"}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Not Found","request_id":"towy0dfp5ci4rcof"}2) I am authenticating using JWT.
Please let me know for any clarifications.
Thanks againg
-
I suspect you may be having the same problem as someone in another thread — the user you're acting as when you authenticate via JWT is actually a totally separate user from your personal account that you view through the web UI. If you want to share content between the two accounts, you'll need to create a folder they can both access — there are some instructions for how to do that in the thread I linked above! Can you give that a try and let me know if it works for you?
サインインしてコメントを残してください。
コメント
3件のコメント