Getting 400 Error while adding Editor to a folder recently
Hi,
I am using something code (below) to add editor to a folder. This was working fine for sometime but when I tried with a lot of test data it started giving me 400 error. And it does so for any new call to this;
BoxCollaboration.Info collabInfo = folder.collaborate(collaborator, BoxCollaboration.Role.EDITOR);
The code fails at the code line above.
I am doing this on Dev account. Is there any limition on this call ? If not can someone help me understand this.
Thank you for your help.
-
Adding Exception Thrown;
com.box.sdk.BoxAPIException: The API returned an error code: 400 at com.box.sdk.BoxAPIResponse.(BoxAPIResponse.java:70) at com.box.sdk.BoxJSONResponse.(BoxJSONResponse.java:30) at com.box.sdk.BoxAPIRequest.trySend(BoxAPIRequest.java:423) at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:209) at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:184) at com.box.sdk.BoxFolder.collaborate(BoxFolder.java:112) at com.box.sdk.BoxFolder.collaborate(BoxFolder.java:94)
-
I ran the same code today (as one above passing email and role) and it was able to add collaborator as "Editor" again. When check on ui after the code, I do see the added email as collaborator.
I do not understand why it failed yesterday. Can someone please shed some light on this?
Thanks
Please sign in to leave a comment.
Comments
3 comments