Skip to main content
Box Employee
May 27, 2025 12:20 PM UTC
Question

Getting 400 Bad Request when Adding Collaborator

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

    Box Employee
    May 27, 2025 12:20 PM UTC

    Hello, 

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

    Alex, Box Developer Advocate

    Translate