Welcome to the new Box Support website. Check out all the details here on what’s changed.

API Docmumentation erroneous / Example lacking or wrong

New post

Comments

1 comment

  • bx_dev2
    curl --location --request POST 'https://api.box.com/2.0/collaborations/' \

    --header 'Authorization: Bearer token’ \

    --header 'Content-Type: text/plain' \

    --header 'Cookie: site_preference=desktop' \

    --data-raw '{"item": { "id": “folder”, "type": "folder"}, "accessible_by": { "login": “email@gmail.com"}, "role": "editor"}'

    Might be something off in the formatting of the command given the error. The above worked for me in curl 

    I was also able to add collaboration in Postman.

    0
    Comment actions Permalink

Please sign in to leave a comment.