Skip to main content
Question

Getting 400 Bad Request when Adding Collaborator

  • May 27, 2025
  • 1 reply
  • 20 views

Forum|alt.badge.img

Request: POST
https://api.box.com/2.0/collaborations

Body:

{
"item": {
"type": "folder",
"id": "XXXXX"
},
"accessible_by": {
"type": "user",
"login": "XXXX@email.com"
},
"role": "editor"
}



I am getting the following response:

{
"type": "error",
"status": 400,
"code": "bad_request",
"context_info": {
"errors": [
{
"reason": "invalid_parameter",
"name": "item",
"message": "Invalid value 'Box_Folder XXXXXXXX'."
}
]
},
"message": "Bad Request",
"request_id": "jsxpyqh6ulgua2b8"
}

1 reply

Forum|alt.badge.img
  • Author
  • Known Participant
  • 34746 replies
  • May 27, 2025

Hello, 

Are you just running a curl request? or how are you running your code? 

Alex, Box Developer Advocate