Skip to main content
Question

Getting 500 Internal error in BOX API

  • May 21, 2025
  • 3 replies
  • 43 views

Forum|alt.badge.img

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?

3 replies

Forum|alt.badge.img

Hello ,

 

could you give us more details please? 🙂 

 

Which kind of transaction were you doing? Were you uploading a document? A folder? downloading a document?

 

Have you tried to execute the same URL from a tool like postmann or a curl command?

 

Regards


Forum|alt.badge.img

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"}'

 


Forum|alt.badge.img

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,