Getting 500 Internal error in BOX API
I got following error when I invoke Box API [Create Collaboration] using QUESTETRA BPM Suite.
{"type":"error","status":500,"code":"internal_server_error","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Internal Server Error","request_id":"***number removed for privacy***95907eaa46c7c6"}
Any ideas?
-
Hi ,thanks for reply.
I tried Create Collaboration API to make specified folder co-editable.
https://developer.box.com/reference#add-a-collaboration>Have you tried to execute the same URL from a tool like postmann or a curl command?
Yes, I tried curl like this.
curl https://api.box.com/2.0/collaborations \ -H "Authorization: Bearer **************************" \ -d '{"item": { "id": "FOLDER_ID", "type": "folder"}, "accessible_by": { "id": "USER_ID", "type": "user" }, "role": "editor"}' \ -X POST
And Questetra, I requested like this.
URL : https://api.box.com/2.0/collaborations Header : OAuth2.0 Method : POST request body(content-type = application/json) : '{"item": { "id": "*************", "type": "folder"}, "accessible_by": { "login": "*************************" }, "role": "editor"}'
-
Hello ,
I have tried it with restlet (similar to postmann) with this body:
{"item": { "id": "${"FOLDER_ID"}", "type": "folder"}, "accessible_by": {"id": "${"USER_ID"}", "type": "user"}, "role": "Previewer"}
And it worked fine for me.
Could you share the message as you are sending it?
The error may come for a message that it is not correct or... maybe something related to some configuration at folder level where invites are not allowed.
Regards,
Please sign in to leave a comment.
Comments
3 comments